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

This commit is contained in:
Peter Hoeg 2014-11-19 16:46:14 +08:00
parent c47be7b415
commit 1e8da0d494
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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