diff options
Diffstat (limited to 'lld2d.install')
-rw-r--r-- | lld2d.install | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lld2d.install b/lld2d.install new file mode 100644 index 000000000000..cc112a9495ef --- /dev/null +++ b/lld2d.install @@ -0,0 +1,30 @@ +_doall() { + local _svc + for _svc in '/etc/systemd/system/multi-user.target.wants'/lld2d@*.service; do + if [ -f "${_svc}" ]; then + echo systemctl "$1" "$(basename "${_svc}")" + systemctl "$1" "$(basename "${_svc}")" + fi + done +} + +pre_upgrade() { + _doall 'stop' +} + +post_upgrade() { + systemctl daemon-reload + _doall 'start' +} + +post_install() { + post_upgrade +} + +pre_remove() { + _doall 'stop' +} + +post_remove() { + systemctl daemon-reload +} |