aboutsummaryrefslogtreecommitdiffstats
path: root/del-service
diff options
context:
space:
mode:
Diffstat (limited to 'del-service')
-rwxr-xr-xdel-service22
1 files changed, 11 insertions, 11 deletions
diff --git a/del-service b/del-service
index 47b66a7..c19b1f2 100755
--- a/del-service
+++ b/del-service
@@ -7,7 +7,7 @@
# Authors : Frederic Lepied, Andrey Borzenkov
# Created On : Tue Jul 9 08:11:26 2002
# Purpose : helper script for rpm scriptlets to remove a
-# service.
+# service.
#---------------------------------------------------------------
if [ x$1 = x--no-sysv ]; then
@@ -38,13 +38,13 @@ units_to_remove=
if [ $num = 0 ]; then
if [ -z "$DURING_INSTALL" ]; then
- if [ -n "$units" ]; then
- if /bin/mountpoint -q /sys/fs/cgroup/systemd; then
- /bin/systemctl stop $units
- fi
- elif [ -n "srv" ]; then
- /sbin/service $srv stop > /dev/null || :
- fi
+ if [ -n "$units" ]; then
+ if /bin/mountpoint -q /sys/fs/cgroup/systemd; then
+ /bin/systemctl stop $units
+ fi
+ elif [ -n "srv" ]; then
+ /sbin/service $srv stop > /dev/null || :
+ fi
fi
[ -n "$units" ] && /bin/systemctl --no-reload --quiet disable $units
@@ -55,9 +55,9 @@ if [ $num = 0 ]; then
# reload again. Systemd units are supposed to provide postun script
if [ -n "$srv" -a -z "$units" ] && \
- /bin/mountpoint -q /sys/fs/cgroup/systemd; then
- /bin/rm -f /etc/rc.d/init.d/$srv
- /bin/systemctl daemon-reload
+ /bin/mountpoint -q /sys/fs/cgroup/systemd; then
+ /bin/rm -f /etc/rc.d/init.d/$srv
+ /bin/systemctl daemon-reload
fi
fi