From 12fe844fdc0d963ac9b0b3fd4d5e039898306c68 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 30 Oct 2011 14:34:47 +0000 Subject: Tabs->Spaces. The latter seems more common, so go with that. --- del-service | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'del-service') 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 -- cgit v1.2.1