;; Template — install.sh substitutes __DIR__ and __PYTHON__ and installs the ;; result to ~/.config/systemd/user/share.service. Do not install this file directly. [Unit] Description=Share — local file sharing After=network-online.target Wants=network-online.target [Service] ; Unbuffered — otherwise Python block-buffers stdout when it is not a tty and the ; startup banner / warnings never reach journalctl. Environment=PYTHONUNBUFFERED=1 ExecStart=__PYTHON__ __DIR__/share.py WorkingDirectory=__DIR__ Restart=on-failure RestartSec=3 [Install] WantedBy=default.target