Merge pull request #1326 from rumpelsepp/systemd

Some systemd tweaks
This commit is contained in:
Jakob Borg 2015-02-12 16:58:54 +01:00
commit bbaeca96eb
2 changed files with 8 additions and 9 deletions

View File

@ -1,13 +1,12 @@
[Unit]
Description=Syncthing service for %i
Description=Syncthing - Open Source Continuous File Synchronization for %I
Documentation=https://github.com/syncthing/syncthing/wiki
After=network.target
[Service]
User=%i
Environment=STARGS=
EnvironmentFile=-/etc/default/syncthing
Environment=STNORESTART=yes
ExecStart=/usr/bin/syncthing ${STARGS}
ExecStart=/usr/bin/syncthing
Restart=on-failure
RestartPreventExitStatus=1
SuccessExitStatus=2

View File

@ -1,15 +1,15 @@
[Unit]
Description=Syncthing service
Description=Syncthing - Open Source Continuous File Synchronization
Documentation=https://github.com/syncthing/syncthing/wiki
After=network.target
[Service]
Environment=STARGS=
EnvironmentFile=-%h/.config/syncthing/environment
Environment=STNORESTART=yes
ExecStart=/usr/bin/syncthing ${STARGS}
ExecStart=/usr/bin/syncthing
Restart=on-failure
RestartPreventExitStatus=1
SuccessExitStatus=2
RestartForceExitStatus=3 4
[Install]
WantedBy=cmdline.target
WantedBy=default.target