diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2011-01-23 18:34:53 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2011-01-23 18:34:53 +0000 |
commit | b8612ef8aaabe1e3b41ceadadf10b487703e2d29 (patch) | |
tree | ff39eb761c3983e0d3ff1aeeafbd419fac15b8e4 /del-service | |
parent | e5e0ff96d4cada38f335b7a2b316dbc9cfd51952 (diff) | |
download | rpm-helper-b8612ef8aaabe1e3b41ceadadf10b487703e2d29.tar rpm-helper-b8612ef8aaabe1e3b41ceadadf10b487703e2d29.tar.gz rpm-helper-b8612ef8aaabe1e3b41ceadadf10b487703e2d29.tar.bz2 rpm-helper-b8612ef8aaabe1e3b41ceadadf10b487703e2d29.tar.xz rpm-helper-b8612ef8aaabe1e3b41ceadadf10b487703e2d29.zip |
Add systemd support for services (#62278)
Diffstat (limited to 'del-service')
-rwxr-xr-x | del-service | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/del-service b/del-service index 5f62689..7a8ca00 100755 --- a/del-service +++ b/del-service @@ -23,6 +23,11 @@ if [ $num = 0 ]; then if [ -z "$DURING_INSTALL" ]; then /sbin/service $srv stop > /dev/null || : fi + # support for systemd + if [ -x /bin/systemctl ]; + /bin/systemctl stop ${srv}.service > /dev/null 2>&1 + /bin/systemctl enable ${srv}.service > /dev/null 2>&1 + fi /sbin/chkconfig --del $srv fi |