Merge pull request #10 from mozilla/dont-restart-client-on-update-check

Only restart vaani if an update happens
This commit is contained in:
Kelly Davis 2016-08-31 10:10:42 +02:00 коммит произвёл GitHub
Родитель 1940d8da7c 788a8fdf72
Коммит dda41f8d5f
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