mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-15 05:22:59 +02:00
QoS Fit fuer die neue Version gemacht. NTPd Startscript angepasst. (Das andere dauerte einfach zu lange zum starten!) git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@405 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
35 lines
436 B
Bash
35 lines
436 B
Bash
#!/bin/sh
|
|
# Begin $rc_base/init.d/ntp
|
|
|
|
. /etc/sysconfig/rc
|
|
. $rc_functions
|
|
|
|
case "$1" in
|
|
start)
|
|
boot_mesg "Starting ntpd..."
|
|
loadproc /usr/bin/ntpd -Ap /var/run/ntpd.pid
|
|
;;
|
|
|
|
stop)
|
|
boot_mesg "Stopping ntpd..."
|
|
killproc /usr/bin/ntpd
|
|
;;
|
|
|
|
restart)
|
|
$0 stop
|
|
sleep 1
|
|
$0 start
|
|
;;
|
|
|
|
status)
|
|
statusproc /usr/bin/ntpd
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart|status}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# End $rc_base/init.d/ntp
|