SOURCES: apparmor-parser.init - partial pldize, by LSB exit 3 for ...

glen glen at pld-linux.org
Tue Dec 12 17:23:10 CET 2006


Author: glen                         Date: Tue Dec 12 16:23:10 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- partial pldize, by LSB exit 3 for usage

---- Files affected:
SOURCES:
   apparmor-parser.init (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/apparmor-parser.init
diff -u SOURCES/apparmor-parser.init:1.1 SOURCES/apparmor-parser.init:1.2
--- SOURCES/apparmor-parser.init:1.1	Tue Dec 12 16:44:30 2006
+++ SOURCES/apparmor-parser.init	Tue Dec 12 17:23:05 2006
@@ -8,10 +8,6 @@
 # Source function library
 . /etc/rc.d/init.d/functions
 
-usage() {
-	echo "Usage: $0 {start|stop|restart|try-restart|reload|force-reload|status|kill}"
-}
-
 sd_log_skipped_msg() {
 	echo -n "$*"
 	#success
@@ -44,31 +40,32 @@
 
 . /etc/apparmor/rc.apparmor.functions
 
+RETVAL=0
 case "$1" in
-	start)
-		subdomain_start
-		;;
-	stop)
-		subdomain_stop
-		;;
-	restart|reload|force-reload)
-		subdomain_restart
-		;;
-	try-restart)
-		subdomain_try_restart
-		;;
-	debug)
-		subdomain_debug
-		;;
-	kill)
-		subdomain_kill
-		;;
-	status)
-		subdomain_status
-		;;
-	*)
-		usage
-		exit 1
-	esac
-exit 0
+start)
+	subdomain_start
+	;;
+stop)
+	subdomain_stop
+	;;
+restart|reload|force-reload)
+	subdomain_restart
+	;;
+try-restart)
+	subdomain_try_restart
+	;;
+debug)
+	subdomain_debug
+	;;
+kill)
+	subdomain_kill
+	;;
+status)
+	subdomain_status
+	;;
+*)
+	msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status|kill}"
+	exit 3
+esac
 
+exit $RETVAL
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/apparmor-parser.init?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list