diff options
author | Andrey Borzenkov <arvidjaar@mandriva.org> | 2011-03-08 15:15:26 +0000 |
---|---|---|
committer | Andrey Borzenkov <arvidjaar@mandriva.org> | 2011-03-08 15:15:26 +0000 |
commit | 74eee552b4d032320f824289650b93cd3157d5ec (patch) | |
tree | b0749f3f0ff89326b51558e806ae3f4fbbb62987 /del-service | |
parent | 75a7dd657c4b9cc46b1f5647eda290d447ef398d (diff) | |
download | rpm-helper-74eee552b4d032320f824289650b93cd3157d5ec.tar rpm-helper-74eee552b4d032320f824289650b93cd3157d5ec.tar.gz rpm-helper-74eee552b4d032320f824289650b93cd3157d5ec.tar.bz2 rpm-helper-74eee552b4d032320f824289650b93cd3157d5ec.tar.xz rpm-helper-74eee552b4d032320f824289650b93cd3157d5ec.zip |
also re-enable systemd unit in update if it was enabled
Diffstat (limited to 'del-service')
-rwxr-xr-x | del-service | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/del-service b/del-service index 881bb99..c95f992 100755 --- a/del-service +++ b/del-service @@ -26,6 +26,7 @@ options=--quiet [ -x /bin/systemctl -a -r /lib/systemd/system/${srv}.service ] && systemd=yes [ -r /etc/rc.d/init.d/${srv} ] && sysv=yes [ $sysv = yes ] && options="$options --no-reload" +unit=${srv}.service if [ $num = 0 ]; then # Will be redirected to systemd if needed @@ -35,7 +36,7 @@ if [ $num = 0 ]; then # support for systemd. chkconfig will do daemon-reload for us if [ $systemd = yes ]; then - /bin/systemctl $options disable ${srv}.service + /bin/systemctl $options disable ${unit} fi if [ $sysv = yes ]; then /sbin/chkconfig --del $srv |