aboutsummaryrefslogtreecommitdiffstats
path: root/del-service
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2011-10-30 14:34:47 +0000
committerColin Guthrie <colin@mageia.org>2011-10-30 14:34:47 +0000
commit12fe844fdc0d963ac9b0b3fd4d5e039898306c68 (patch)
tree731b3acf8f365d3d3dd05bf140e185d0049b416b /del-service
parentbc72f756996e4539d7ad043f9cddf1ca98168243 (diff)
downloadrpm-helper-12fe844fdc0d963ac9b0b3fd4d5e039898306c68.tar
rpm-helper-12fe844fdc0d963ac9b0b3fd4d5e039898306c68.tar.gz
rpm-helper-12fe844fdc0d963ac9b0b3fd4d5e039898306c68.tar.bz2
rpm-helper-12fe844fdc0d963ac9b0b3fd4d5e039898306c68.tar.xz
rpm-helper-12fe844fdc0d963ac9b0b3fd4d5e039898306c68.zip
Tabs->Spaces. The latter seems more common, so go with that.
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