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 Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git]
/
halevt
/
halevt.rc
blob
5de7d14072018bd1304be300a5b49978415de72f
1
#!/bin/bash
2
3
.
/
etc
/
rc.conf
4
.
/
etc
/
rc.d
/
functions
5
6
PID
=
`pidof -o %PPID /usr/bin/halevt`
7
8
case
"
$1
"
in
9
10
start
)
11
stat_busy
"Starting halevt"
12
[
-z
"
$PID
"
] && /
usr
/
bin
/
halevt
13
if
[
$?
-gt
0
];
then
14
stat_fail
15
else
16
add_daemon halevt
17
stat_done
18
fi
19
;;
20
21
stop
)
22
stat_busy
"Stopping halevt"
23
[ !
-z
"
$PID
"
] &&
kill
$PID
&> /
dev
/
null
24
if
[
$?
-gt
0
];
then
25
stat_fail
26
else
27
rm_daemon halevt
28
stat_done
29
fi
30
;;
31
32
restart
)
33
$0
stop
34
$0
start
35
;;
36
37
*)
38
echo
"usage:
$0
{start|stop|restart}"
39
esac
40
exit
0