]> git.pld-linux.org Git - packages/apparmor-parser.git/commitdiff
- a bit better but still doesn't match pld style
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 29 May 2008 21:09:09 +0000 (21:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apparmor-parser.init -> 1.4

apparmor-parser.init

index 5217f704df9cef0da315462d568b322a2db7b69b..6ffa4a1f6503a41b7b65a766aa8bbfde2bd7d698 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # chkconfig: 2345 01 99
 # description: AppArmor rc file. This rc script inserts the apparmor \
 #             module and runs the parser on the /etc/apparmor.d/ \
@@ -9,26 +9,26 @@
 . /etc/rc.d/init.d/functions
 
 aa_log_skipped_msg() {
-       echo -n "$*"
-       #success
-       echo
+       busy
+       fail
+       [ -n "$*" ] && echo "$*"
 }
 aa_log_success_msg() {
-       echo -n "$*"
-       #success
-       echo
+       busy
+       ok
+       [ -n "$*" ] && echo "$*"
 }
 
 aa_log_warning_msg() {
-       echo -n "$*"
-       #warning
-       echo
+       busy
+       fail
+       [ -n "$*" ] && echo "$*"
 }
 
 aa_log_failure_msg() {
-       echo -n "$*"
-       #failure
-       echo
+       busy
+       fail
+       [ -n "$*" ] && echo "$*"
 }
 
 aa_action() {
@@ -43,15 +43,23 @@ aa_action() {
 RETVAL=0
 case "$1" in
 start)
+       msg_starting apparmor
+       started
        apparmor_start
        ;;
 stop)
+       msg_stopping apparmor
+       started
        apparmor_stop
        ;;
 restart|reload|force-reload)
+       msg_reloading apparmor
+       started
        apparmor_restart
        ;;
 try-restart)
+       msg_reloading
+       started
        apparmor_try_restart
        ;;
 debug)
This page took 0.108394 seconds and 4 git commands to generate.