mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-17 02:48:57 -07:00
Merge pull request #1325 from rumpelsepp/master
Added exit code definitions to systemd service files (fixes #1324)
This commit is contained in:
commit
57028e3acc
@ -9,6 +9,9 @@ EnvironmentFile=-/etc/default/syncthing
|
|||||||
Environment=STNORESTART=yes
|
Environment=STNORESTART=yes
|
||||||
ExecStart=/usr/bin/syncthing ${STARGS}
|
ExecStart=/usr/bin/syncthing ${STARGS}
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
RestartPreventExitStatus=1
|
||||||
|
SuccessExitStatus=2
|
||||||
|
RestartForceExitStatus=3 4
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -7,6 +7,9 @@ EnvironmentFile=-%h/.config/syncthing/environment
|
|||||||
Environment=STNORESTART=yes
|
Environment=STNORESTART=yes
|
||||||
ExecStart=/usr/bin/syncthing ${STARGS}
|
ExecStart=/usr/bin/syncthing ${STARGS}
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
RestartPreventExitStatus=1
|
||||||
|
SuccessExitStatus=2
|
||||||
|
RestartForceExitStatus=3 4
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=cmdline.target
|
WantedBy=cmdline.target
|
||||||
|
Loading…
Reference in New Issue
Block a user