repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git]
/
tomoyo-tools-2.2
/
tomoyo-tools.rc
blob
4dbaf0e0a02e88046ab8323f2486c075b2269c7b
1
#!/bin/bash
2
3
daemon
=
"TOMOYO"
4
5
.
/
etc
/
rc.conf
6
.
/
etc
/
rc.d
/
functions
7
8
case
"
$1
"
in
9
start
)
10
stat_busy
"Starting
$daemon
subsystem"
11
/
sbin
/
tomoyo-init
> /
dev
/
null
12
13
if
[
$?
-gt
0
];
then
14
stat_fail
15
exit
1
16
else
17
stat_done
18
fi
19
;;
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
28
fi
29
;;
30
save
)
31
/
usr
/
sbin
/
tomoyo-savepolicy
32
if
[
$?
-gt
0
];
then
33
stat_fail
34
exit
1
35
else
36
stat_done
37
fi
38
;;
39
*)
40
echo
"usage:
$0
{start|stop|save}"
41
esac
42
43
exit
0