X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fmacros.systemd.in;h=bea6ef1da3cbdf93f351cfafced28a020e0c07c5;hb=b57b06258e0b1894edb6d1fc52a80b3c33164892;hp=333f222de086aa2e5b48341f68c5d82cbc8cf5b9;hpb=0e77023ea0ce315af6b0c4806b27c0140c91bbc7;p=elogind.git diff --git a/src/core/macros.systemd.in b/src/core/macros.systemd.in index 333f222de..bea6ef1da 100644 --- a/src/core/macros.systemd.in +++ b/src/core/macros.systemd.in @@ -43,6 +43,8 @@ if [ $1 -eq 1 ] ; then \ fi \ %{nil} +%systemd_user_post() %systemd_post --user --global %{?*} + %systemd_preun() \ if [ $1 -eq 0 ] ; then \ # Package removal, not upgrade \ @@ -51,10 +53,19 @@ if [ $1 -eq 0 ] ; then \ fi \ %{nil} +%systemd_user_preun() \ +if [ $1 -eq 0 ] ; then \ + # Package removal, not upgrade \ + systemctl --no-reload --user --global disable %{?*} > /dev/null 2>&1 || : \ +fi \ +%{nil} + %systemd_postun() \ systemctl daemon-reload >/dev/null 2>&1 || : \ %{nil} +%systemd_user_postun() %{nil} + %systemd_postun_with_restart() \ systemctl daemon-reload >/dev/null 2>&1 || : \ if [ $1 -ge 1 ] ; then \ @@ -63,6 +74,8 @@ if [ $1 -ge 1 ] ; then \ fi \ %{nil} +%systemd_user_postun_with_restart() %{nil} + %udev_hwdb_update() \ udevadm hwdb --update >/dev/null 2>&1 || : \ %{nil}