]>
Commit | Line | Data |
---|---|---|
74435928 | 1 | #!/bin/sh |
2 | # Startup script for anacron | |
3 | # | |
4 | # chkconfig: 2345 05 92 | |
5 | # description: Anacron a periodic command scheduler. | |
6 | ||
7 | # Source function library. | |
8 | . /etc/rc.d/init.d/functions | |
9 | ||
10 | [ -f /usr/sbin/anacron ] || exit 0 | |
11 | ||
12 | case "$1" in | |
13 | start) | |
e175e824 | 14 | msg_starting "anacron" |
74435928 | 15 | daemon anacron |
74435928 | 16 | ;; |
17 | ||
18 | stop) | |
e175e824 | 19 | msg_stopping "anacron" |
74435928 | 20 | killproc anacron |
74435928 | 21 | ;; |
22 | ||
23 | status) | |
24 | status anacron | |
25 | ;; | |
26 | ||
27 | restart) | |
28 | $0 stop | |
29 | $0 start | |
30 | ;; | |
31 | ||
32 | *) | |
e175e824 | 33 | msg_Usage "$0 {start|stop|restart|status}" |
74435928 | 34 | exit 1 |
35 | ||
36 | esac | |
37 | ||
38 | exit 0 |