Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464174 - net-misc/openntpd-20080406 causes really slow boot sequence
Summary: net-misc/openntpd-20080406 causes really slow boot sequence
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christoph Junghans (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-02 08:47 UTC by Dirkjan Ochtman (RETIRED)
Modified: 2013-06-22 14:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirkjan Ochtman (RETIRED) gentoo-dev 2013-04-02 08:47:29 UTC
At boot time, openntpd can be really slow, causing the boot to take a long time.
Comment 1 Dirkjan Ochtman (RETIRED) gentoo-dev 2013-04-02 12:29:29 UTC
This might be due to slow or failing network connections. Still, it shouldn't hold up the boot sequence in those cases.
Comment 2 Christoph Junghans (RETIRED) gentoo-dev 2013-04-05 15:19:23 UTC
I guess ntpd does a network connection test during start.

Does it help if you add the following two lines in the header of /etc/init.d/ntpd ?
command_background="yes"
pidfile="/var/run/ntpd.pid"
Comment 3 Christoph Junghans (RETIRED) gentoo-dev 2013-04-20 00:26:22 UTC
(In reply to comment #2)
> Does it help if you add the following two lines in the header of
> /etc/init.d/ntpd ?
> command_background="yes"
> pidfile="/var/run/ntpd.pid"
This solution is not optimal as pid in the pidfile is wrong and hence shutdown doesn't work. One could combine the whole thing with ntpd's -d option to not daemonize and redirect stdout to /run/ntpd.log, which could help for bug #466452.
Comment 4 Christoph Junghans (RETIRED) gentoo-dev 2013-04-20 00:49:21 UTC
(In reply to comment #3)
> This solution is not optimal as pid in the pidfile is wrong and hence
> shutdown doesn't work. One could combine the whole thing with ntpd's -d
> option to not daemonize and redirect stdout to /run/ntpd.log, which could
> help for bug #466452.
That's the new header of /etc/init.d/ntpd :

command_args="${NTPD_OPTS} -d"
command_background="yes"
pidfile="/var/run/ntpd.pid"
logfile="/var/run/ntpd.log"
start_stop_daemon_args="--stderr ${logfile}"
Comment 5 Christoph Junghans (RETIRED) gentoo-dev 2013-05-28 16:36:51 UTC
@djc: any opinion on the proposed solution?
Comment 6 Dirkjan Ochtman (RETIRED) gentoo-dev 2013-05-28 17:12:20 UTC
It looks good, I haven't been able to test it, but it seems likely that this will solve the problems I saw in the past.
Comment 7 Christoph Junghans (RETIRED) gentoo-dev 2013-05-28 17:17:46 UTC
(In reply to Dirkjan Ochtman from comment #6)
> It looks good, I haven't been able to test it, but it seems likely that this
> will solve the problems I saw in the past.
Great, I will Incorporate that in the next revision bump.
Comment 8 Dirkjan Ochtman (RETIRED) gentoo-dev 2013-06-22 10:51:32 UTC
When will that revbump be? I just had to boot a few boxes straight to shell again to remove openntpd from the boot sequence (in this case, because our name server is having maintenance).
Comment 9 Christoph Junghans (RETIRED) gentoo-dev 2013-06-22 14:47:18 UTC
I was waiting for bug #471610, but here we go:

+*openntpd-20080406-r1 (22 Jun 2013)
+
+  22 Jun 2013; Christoph Junghans <ottxor@gentoo.org>
+  +files/openntpd.init.d-20080406-r1, +openntpd-20080406-r1.ebuild:
+  fix slow boot sequence (bug #464174)
+