Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware.git;a=commitdiff;h=5d12939599d6b1b81988ae86a28c6f8b21c772be

commit 5d12939599d6b1b81988ae86a28c6f8b21c772be
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Wed Feb 13 01:10:14 2008 +0100

service: indent fix

diff --git a/var/service b/var/service
index b90e7c0..991eb98 100644
--- a/var/service
+++ b/var/service
@@ -35,30 +35,30 @@ fi
if [ "$1" = "list" ]; then
chkconfig --list --level $2 | grep $2:$3
else
-service=rc.$1
-name=/etc/rc.d/$service
-if ! [ -z "$1" ]; then
-       if ! [ -e $name ]; then
-               # this will print a nice error message
-               chkconfig --list $service
-               exit 1
+       service=rc.$1
+       name=/etc/rc.d/$service
+       if ! [ -z "$1" ]; then
+               if ! [ -e $name ]; then
+                       # this will print a nice error message
+                       chkconfig --list $service
+                       exit 1
+               fi
+               if ! chkconfig --list $service >/dev/null 2>&1; then
+                       chkconfig --list $service
+                       exit 1
+               fi
fi
-       if ! chkconfig --list $service >/dev/null 2>&1; then
+       if [ "$2" = "start" ]; then
+               $name start
+       elif [ "$2" = "stop" ]; then
+               $name stop
+       elif [ "$2" = "restart" ]; then
+               $name restart
+       elif [ "$2" = "add" ]; then
+               chkconfig --add $service
+       elif [ "$2" = "del" ]; then
+               chkconfig --del $service
+       elif [ "$2" = "list" ]; then
chkconfig --list $service
-               exit 1
fi
fi
-if [ "$2" = "start" ]; then
-       $name start
-elif [ "$2" = "stop" ]; then
-       $name stop
-elif [ "$2" = "restart" ]; then
-       $name restart
-elif [ "$2" = "add" ]; then
-       chkconfig --add $service
-elif [ "$2" = "del" ]; then
-       chkconfig --del $service
-elif [ "$2" = "list" ]; then
-       chkconfig --list $service
-  fi
-fi
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to