Просмотр исходного кода

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

Peter Hoeg 11 лет назад
Родитель
Сommit
1e8da0d494
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      etc/systemd/system/[email protected]
  2. 1 1
      etc/systemd/user/syncthing.service

+ 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