86f5b18fd7
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_ntp@5573 504e572c-2e33-0410-9681-be2bf7408885
20 lines
416 B
Plaintext
20 lines
416 B
Plaintext
description "Samba Name Deamon"
|
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|
version 1.0
|
|
emits none special
|
|
|
|
start on (runlevel [2345] and (started ifup))
|
|
stop on runlevel [016]
|
|
|
|
console output
|
|
|
|
pre-start script
|
|
if [ -f /etc/ntp.conf ]; then
|
|
/usr/bin/ntpdate `grep server /etc/ntp.conf|head --lines=1|sed -e "s/server //g"`
|
|
else
|
|
exit 10
|
|
fi
|
|
end script
|
|
|
|
exec /usr/bin/ntpd -n -l /var/log/ntp.log
|