mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-08 14:58:26 +00:00
Merge pull request #1543 from rumpelsepp/systemd
systemd: Fix error code definitions to prevent failed units
This commit is contained in:
commit
bcf8f798e2
@ -8,8 +8,7 @@ User=%i
|
|||||||
Environment=STNORESTART=yes
|
Environment=STNORESTART=yes
|
||||||
ExecStart=/usr/bin/syncthing -no-browser -logflags=0
|
ExecStart=/usr/bin/syncthing -no-browser -logflags=0
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartPreventExitStatus=1
|
SuccessExitStatus=2 3 4
|
||||||
SuccessExitStatus=2
|
|
||||||
RestartForceExitStatus=3 4
|
RestartForceExitStatus=3 4
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@ -7,8 +7,7 @@ After=network.target
|
|||||||
Environment=STNORESTART=yes
|
Environment=STNORESTART=yes
|
||||||
ExecStart=/usr/bin/syncthing -no-browser -logflags=0
|
ExecStart=/usr/bin/syncthing -no-browser -logflags=0
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartPreventExitStatus=1
|
SuccessExitStatus=2 3 4
|
||||||
SuccessExitStatus=2
|
|
||||||
RestartForceExitStatus=3 4
|
RestartForceExitStatus=3 4
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user