]> git.pld-linux.org Git - packages/apparmor-parser.git/blob - apparmor-parser.init
- BR: tetex-format-pdflatex, latex2html, release 1
[packages/apparmor-parser.git] / apparmor-parser.init
1 #!/bin/sh
2 # chkconfig: 2345 01 99
3 # description: AppArmor rc file. This rc script inserts the apparmor \
4 #              module and runs the parser on the /etc/apparmor.d/ \
5 #              directory.
6 #
7
8 # Source function library
9 . /etc/rc.d/init.d/functions
10
11 sd_log_skipped_msg() {
12         echo -n "$*"
13         #success
14         echo
15 }
16 sd_log_success_msg() {
17         echo -n "$*"
18         #success
19         echo
20 }
21
22 sd_log_warning_msg() {
23         echo -n "$*"
24         #warning
25         echo
26 }
27
28 sd_log_failure_msg() {
29         echo -n "$*"
30         #failure
31         echo
32 }
33
34 sd_action() {
35         STRING=$1
36         shift
37         run_cmd "$STRING" "$@"
38         return $?
39 }
40
41 . /etc/apparmor/rc.apparmor.functions
42
43 RETVAL=0
44 case "$1" in
45 start)
46         subdomain_start
47         ;;
48 stop)
49         subdomain_stop
50         ;;
51 restart|reload|force-reload)
52         subdomain_restart
53         ;;
54 try-restart)
55         subdomain_try_restart
56         ;;
57 debug)
58         subdomain_debug
59         ;;
60 kill)
61         subdomain_kill
62         ;;
63 status)
64         subdomain_status
65         ;;
66 *)
67         msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status|kill}"
68         exit 3
69 esac
70
71 exit $RETVAL
This page took 0.058789 seconds and 3 git commands to generate.