View previous topic :: View next topic |
Author |
Message |
LinuxTom l33t
Joined: 26 Mar 2006 Posts: 798
|
Posted: Fri Mar 31, 2006 12:29 am Post subject: ntpd did not start correctly |
|
|
After this small change it functioned again without problems:
Code: | --- /etc/init.d/ntpd.org 2006-03-31 02:14:18.000000000 +0200
+++ /etc/init.d/ntpd 2006-03-31 02:22:18.000000000 +0200
@@ -22,7 +22,9 @@
checkconfig || return $?
ebegin "Starting ntpd"
- /usr/sbin/ntpd -p /var/run/ntpd.pid ${NTPD_OPTS}
+ start-stop-daemon --start \
+ --pidfile /var/run/ntpd.pid \
+ --exec /usr/sbin/ntpd -- -p /var/run/ntpd.pid
eend $? "Failed to start ntpd"
} |
|
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Fri Mar 31, 2006 1:19 am Post subject: |
|
|
The original problem was probably with ${NTPD_OPTS}, which you are now ignoring. It is defined in /etc/conf.d/ntpd, and defaults to:
Code: | NTPD_OPTS="-u ntp:ntp" |
|
|
Back to top |
|
|
LinuxTom l33t
Joined: 26 Mar 2006 Posts: 798
|
Posted: Fri Mar 31, 2006 7:48 am Post subject: |
|
|
Uuups.
Yes (here). |
|
Back to top |
|
|
|