Przeglądaj źródła

on-failure instead of always as we cannot otherwise kill the service

Peter Hoeg 11 lat temu
rodzic
commit
1e8da0d494

+ 1 - 1
etc/systemd/system/[email protected]

@@ -8,7 +8,7 @@ Environment=STARGS=
 EnvironmentFile=-/etc/default/syncthing
 Environment=STNORESTART=yes
 ExecStart=/usr/bin/syncthing ${STARGS}
-Restart=always
+Restart=on-failure
 
 [Install]
 WantedBy=multi-user.target

+ 1 - 1
etc/systemd/user/syncthing.service

@@ -6,7 +6,7 @@ Environment=STARGS=
 EnvironmentFile=-%h/.config/syncthing/environment
 Environment=STNORESTART=yes
 ExecStart=/usr/bin/syncthing ${STARGS}
-Restart=always
+Restart=on-failure
 
 [Install]
 WantedBy=cmdline.target