IMQ Device in den Kernel kompiliert.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / ntp
1 #!/bin/sh
2 # Begin $rc_base/init.d/ntp
3
4 . /etc/sysconfig/rc
5 . $rc_functions
6
7 case "$1" in
8 start)
9 boot_mesg "Starting ntpd..."
10 loadproc /usr/bin/ntpd -Ap /var/run/ntpd.pid
11 ;;
12
13 stop)
14 boot_mesg "Stopping ntpd..."
15 killproc /usr/bin/ntpd
16 ;;
17
18 restart)
19 $0 stop
20 sleep 1
21 $0 start
22 ;;
23
24 status)
25 statusproc /usr/bin/ntpd
26 ;;
27
28 *)
29 echo "Usage: $0 {start|stop|restart|status}"
30 exit 1
31 ;;
32 esac
33
34 # End $rc_base/init.d/ntp