Only restart vaani if an update happens

This commit is contained in:
Chris Lord 2016-08-30 19:32:55 +01:00
Родитель 1940d8da7c
Коммит 788a8fdf72
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -11,3 +11,5 @@ export PKG_CONFIG_PATH=/opt/sphinxbase:/opt/pocketsphinx
systemctl --system set-environment VAANI_BOOTS=$1
systemctl restart vaani
kill -SIGSTOP $$
systemctl stop vaani

Просмотреть файл

@ -11,7 +11,7 @@ Type=simple
StandardOutput=journal
StandardError=journal
WorkingDirectory=/opt/git-auto-updater
ExecStart=/opt/git-auto-updater/bin/git-auto-updater -r https://github.com/mozilla/vaani.client -b deployed -p /opt/vaani.client -t 0200 -e 1 -- bash /opt/vaani.raspberrypi/client/update.sh
ExecStart=/opt/git-auto-updater/bin/git-auto-updater -r https://github.com/mozilla/vaani.client -b deployed -p /opt/vaani.client -t 0200 -e 1 -s SIGCONT -- bash /opt/vaani.raspberrypi/client/update.sh
Restart=always
RestartSec=10s