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

commit 4ed9be8fbe71576d9196238f257ffe6de0af04cf
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Wed Feb 13 01:11:26 2008 +0100

service: add support for status and other custom actions

diff --git a/var/service b/var/service
index 991eb98..8cf9fc2 100644
--- a/var/service
+++ b/var/service
@@ -48,17 +48,13 @@ else
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
+       if [ "$2" = "add" ]; then
chkconfig --add $service
elif [ "$2" = "del" ]; then
chkconfig --del $service
elif [ "$2" = "list" ]; then
chkconfig --list $service
+       else
+               $name $2
fi
fi
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to