]>
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) | |
14 | show "Starting anacron: " | |
15 | daemon anacron | |
16 | echo | |
17 | ;; | |
18 | ||
19 | stop) | |
20 | show "Shutting down anacron " | |
21 | killproc anacron | |
22 | echo | |
23 | ;; | |
24 | ||
25 | status) | |
26 | status anacron | |
27 | ;; | |
28 | ||
29 | restart) | |
30 | $0 stop | |
31 | $0 start | |
32 | ;; | |
33 | ||
34 | *) | |
35 | echo "Usage: anacron {start|stop|restart|status}" | |
36 | exit 1 | |
37 | ||
38 | esac | |
39 | ||
40 | exit 0 |