Update ntpd.service
This commit is contained in:
1 parent
87d86330da
commit
2505711edd
1 file changed
+5
-2
@@ -5,11 +5,14 @@
|
|||||||
. /usr/lib/init/init-funcs.sh
|
. /usr/lib/init/init-funcs.sh
|
||||||
#------------------------------------
|
#------------------------------------
|
||||||
|
|
||||||
NTPD_OPTS=""
|
NTPD_OPTS="-N -p pool.ntp.org -n"
|
||||||
|
if [ -f /etc/ntp.conf ]; then
|
||||||
|
NTPD_OPTS="-N -n"
|
||||||
|
fi
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
notify "Starting ntpd"
|
notify "Starting ntpd"
|
||||||
/usr/bin/ntpd $NTPD_OPTS
|
/usr/bin/ntpd $NTPD_OPTS &
|
||||||
check $? "start ntpd"
|
check $? "start ntpd"
|
||||||
echo $(pgrep ntpd) > /var/run/ntpd.pid
|
echo $(pgrep ntpd) > /var/run/ntpd.pid
|
||||||
return $?
|
return $?
|
||||||
|
|||||||
Reference in new issue
Block a user