mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-17 02:48:57 -07:00
153091f52f
- Removed environment file to keep the service file minimal. "systemctl edit syncthing.service" does the job if somebody wants to customize the service. - Changed "cmdline.target" to "default.target" as "cmdline.target" does not exist in systemd.special: http://www.freedesktop.org/software/systemd/man/systemd.special.html - Added a missing "After=network.target". - Added a documentation hint, thx @jaystrictor
16 lines
350 B
Desktop File
16 lines
350 B
Desktop File
[Unit]
|
|
Description=Syncthing - Open Source Continuous File Synchronization
|
|
Documentation=https://github.com/syncthing/syncthing/wiki
|
|
After=network.target
|
|
|
|
[Service]
|
|
Environment=STNORESTART=yes
|
|
ExecStart=/usr/bin/syncthing
|
|
Restart=on-failure
|
|
RestartPreventExitStatus=1
|
|
SuccessExitStatus=2
|
|
RestartForceExitStatus=3 4
|
|
|
|
[Install]
|
|
WantedBy=default.target
|