X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fdaemon.xml;h=ab355cd59374dc07bb77c49bed3aea0cf61563dd;hp=7e7039e07ad5a226f190ea302d8b517c2fcc6d17;hb=f1dd0c3f9b4a257e81ff9c6a08070c702a0db45a;hpb=2dddca4a8d5d7550860ec90b401eb29735d1b846 diff --git a/man/daemon.xml b/man/daemon.xml index 7e7039e07..ab355cd59 100644 --- a/man/daemon.xml +++ b/man/daemon.xml @@ -841,7 +841,7 @@ fi %preun if [ $1 -eq 0 ]; then # On uninstall (not upgrade), disable and stop the units - /bin/systemctl disable foobar.service foobar.socket >/dev/null 2>&1 || : + /bin/systemctl --no-reload disable foobar.service foobar.socket >/dev/null 2>&1 || : /bin/systemctl stop foobar.service foobar.socket >/dev/null 2>&1 || : fi @@ -869,8 +869,8 @@ fi a fragment like the following: %triggerun -- foobar < 0.47.11-1 -if /sbin/chkconfig foobar ; then - /bin/systemctl enable foobar.service foobar.socket >/dev/null 2>&1 || : +if /sbin/chkconfig --level 3 foobar ; then + /bin/systemctl --no-reload enable foobar.service foobar.socket >/dev/null 2>&1 || : fi Where 0.47.11-1 is the first package