updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / tomoyo-tools-2.2 / tomoyo-tools.rc
blob4dbaf0e0a02e88046ab8323f2486c075b2269c7b
1 #!/bin/bash
3 daemon="TOMOYO"
5 . /etc/rc.conf
6 . /etc/rc.d/functions
8 case "$1" in
9 start)
10 stat_busy "Starting $daemon subsystem"
11 /sbin/tomoyo-init > /dev/null
13 if [ $? -gt 0 ]; then
14 stat_fail
15 exit 1
16 else
17 stat_done
20 stop)
21 stat_done "Stopping $daemon subsystem"
22 /usr/sbin/tomoyo-savepolicy
23 if [ $? -gt 0 ]; then
24 stat_fail
25 exit 1
26 else
27 stat_done
30 save)
31 /usr/sbin/tomoyo-savepolicy
32 if [ $? -gt 0 ]; then
33 stat_fail
34 exit 1
35 else
36 stat_done
40 echo "usage: $0 {start|stop|save}"
41 esac
43 exit 0