mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 09:22:59 +02:00
Der taegliche Commit am Abend :D
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@389 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
38
src/initscripts/init.d/ntp
Normal file
38
src/initscripts/init.d/ntp
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/sh
|
||||
# Begin $rc_base/init.d/ntp
|
||||
|
||||
#$LastChangedBy: bdubbs $
|
||||
#$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
|
||||
|
||||
. /etc/sysconfig/rc
|
||||
. $rc_functions
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
boot_mesg "Starting ntpd..."
|
||||
ntpd -gqx
|
||||
loadproc /usr/bin/ntpd
|
||||
;;
|
||||
|
||||
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
|
||||
@@ -83,7 +83,6 @@ sub doupdatesettings {
|
||||
|
||||
# erase in case it was created once with 'persistent' selected but rc.red stop never used : SF1171610
|
||||
unlink ("${General::swroot}/red/iface");
|
||||
}
|
||||
}
|
||||
|
||||
# No output should be sent to the webclient
|
||||
|
||||
Reference in New Issue
Block a user