Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntpd did not start correctly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
LinuxTom
l33t
l33t


Joined: 26 Mar 2006
Posts: 798

PostPosted: Fri Mar 31, 2006 12:29 am    Post subject: ntpd did not start correctly Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Mar 31, 2006 1:19 am    Post subject: Reply with quote

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
View user's profile Send private message
LinuxTom
l33t
l33t


Joined: 26 Mar 2006
Posts: 798

PostPosted: Fri Mar 31, 2006 7:48 am    Post subject: Reply with quote

Uuups. :oops:

Yes (here).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum