mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
on-failure instead of always as we cannot otherwise kill the service
This commit is contained in:
parent
c47be7b415
commit
1e8da0d494
@ -8,7 +8,7 @@ Environment=STARGS=
|
|||||||
EnvironmentFile=-/etc/default/syncthing
|
EnvironmentFile=-/etc/default/syncthing
|
||||||
Environment=STNORESTART=yes
|
Environment=STNORESTART=yes
|
||||||
ExecStart=/usr/bin/syncthing ${STARGS}
|
ExecStart=/usr/bin/syncthing ${STARGS}
|
||||||
Restart=always
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -6,7 +6,7 @@ Environment=STARGS=
|
|||||||
EnvironmentFile=-%h/.config/syncthing/environment
|
EnvironmentFile=-%h/.config/syncthing/environment
|
||||||
Environment=STNORESTART=yes
|
Environment=STNORESTART=yes
|
||||||
ExecStart=/usr/bin/syncthing ${STARGS}
|
ExecStart=/usr/bin/syncthing ${STARGS}
|
||||||
Restart=always
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=cmdline.target
|
WantedBy=cmdline.target
|
||||||
|
Loading…
Reference in New Issue
Block a user