mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-19 19:45:12 +00:00
18 lines
342 B
Desktop File
18 lines
342 B
Desktop File
[Unit]
|
|
Description=Syncthing service for %i
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=%i
|
|
Environment=STARGS=
|
|
EnvironmentFile=-/etc/default/syncthing
|
|
Environment=STNORESTART=yes
|
|
ExecStart=/usr/bin/syncthing ${STARGS}
|
|
Restart=on-failure
|
|
RestartPreventExitStatus=1
|
|
SuccessExitStatus=2
|
|
RestartForceExitStatus=3 4
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|