mirror of
https://github.com/syncthing/syncthing.git
synced 2026-09-12 22:19:17 -04:00
Added exit code definitions to systemd service files (fixes #1324)
This commit is contained in:
1 parent
8358fedaf4
commit
c586a17926
2 files changed
+6
No files matched your search
@@ -9,6 +9,9 @@ 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
|
||||
@@ -7,6 +7,9 @@ EnvironmentFile=-%h/.config/syncthing/environment
|
||||
Environment=STNORESTART=yes
|
||||
ExecStart=/usr/bin/syncthing ${STARGS}
|
||||
Restart=on-failure
|
||||
RestartPreventExitStatus=1
|
||||
SuccessExitStatus=2
|
||||
RestartForceExitStatus=3 4
|
||||
|
||||
[Install]
|
||||
WantedBy=cmdline.target
|
||||
Reference in new issue
Block a user