/
githubmirror
/
syncthing
Обзор
Документация
Войти
/
githubmirror
/
syncthing
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
script/deb-post-inst.template
14 строк
328 B
Simon Frei
build: Ignore error from pkill on apt upgrade (fixes #7628) (#7629)
04 май 2021, 19:33
Не верифицирован
04 май 2021, 19:33
f4e112f
Код
Авторство
О чём код?
#!/bin/sh command -v deb-systemd-invoke > /dev/null has_systemd=$? if [ $has_systemd -eq 0 ]; then systemctl daemon-reload fi if [ $has_systemd -eq 0 ] && [ -n "$(systemctl list-units --plain --no-legend {{.Service}})" ]; then deb-systemd-invoke try-restart "{{.Service}}" else pkill -HUP -x {{.Command}} || : fi