]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/ntp
2 # Begin $rc_base/init.d/ntp
7 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/time
/settings
)
11 if [ "$ENABLESETONBOOT" == "on" ]; then
12 boot_mesg
"Setting time on booot..."
13 loadproc
/usr
/local
/bin
/settime $
(cat /var
/ipfire
/time
/settime.conf
)
16 boot_mesg
"Starting ntpd..."
17 loadproc
/usr
/bin
/ntpd
-Ap /var
/run
/ntpd.pid
21 boot_mesg
"Stopping ntpd..."
22 killproc
/usr
/bin
/ntpd
32 statusproc
/usr
/bin
/ntpd
36 echo "Usage: $0 {start|stop|restart|status}"
41 # End $rc_base/init.d/ntp