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 17 12:00:36 UTC 2012
[aur-mirror.git]
/
anacron
/
anacrond
blob
a6f1c2bedd5fb66a9d98f9a8a1e8b3bfcbbc8228
1
#!/bin/bash
2
3
.
/
etc
/
rc.conf
4
.
/
etc
/
rc.d
/
functions
5
6
case
"
$1
"
in
7
start
)
8
stat_busy
"Starting Anacron Daemon"
9
/
usr
/
sbin
/
anacron
-s
>> /
var
/
log
/
anacrond.log
2
>&
1
10
if
[
$?
-gt
0
];
then
11
stat_fail
12
else
13
stat_done
14
fi
15
;;
16
stop
)
17
stat_busy
"Stopping Anacron Daemon"
18
stat_done
19
;;
20
restart
)
21
$0
stop
22
$0
start
23
;;
24
*)
25
echo
"usage:
$0
{start|stop|restart}"
26
esac
27
exit
0