[Bug 735146] New: /var/run/ntp/ directory missing
https://bugzilla.novell.com/show_bug.cgi?id=735146 https://bugzilla.novell.com/show_bug.cgi?id=735146#c0 Summary: /var/run/ntp/ directory missing Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: All OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: fcrozat@suse.com ReportedBy: lmuelle@suse.com QAContact: qa@suse.de CC: varkoly@suse.com Found By: Development Blocker: No Calling dhcpcd from the command line results in: Dec 6 20:03:24 lisa dhcpcd[3344]: br0: dhcpcd 3.2.3 starting [ 8< ] Dec 6 20:03:25 lisa dhcpcd[3344]: br0: fopen `/var/run/ntp/servers.br0': No such file or directory Dec 6 20:03:25 lisa dhcpcd[3344]: br0: exiting instead of Dec 6 20:07:33 lisa dhcpcd[3578]: br0: dhcpcd 3.2.3 starting [ 8< ] Dec 6 20:07:35 lisa dhcpcd[3578]: br0: adding route to 169.254.0.0/16 metric 0 This system utilizes systemd to control the start of services. While system boot after /var/run got mounted we have to check if the symbolic link /var/run/ntp pointing to ../lib/ntp/var/run/ntp exists. If that's not the case we must create it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=735146 https://bugzilla.novell.com/show_bug.cgi?id=735146#c1 Lars Müller <lmuelle@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Minor --- Comment #1 from Lars Müller <lmuelle@suse.com> 2011-12-06 21:00:50 CET --- On a system with enabled ntp service the missing sym link gets created by the ntp init script on startup of the service. # Create if /var/run is on tmpfs test -e /var/run/ntp || ln -s ../lib/ntp/var/run/ntp /var/run We might package /etc/dhcpcd.sh executing the test check and calling ln if /var/run doesn't exist and set 0754 permissions. But this only works half way. The sym link /var/run/ntp is created. While no servers.<interface_name> file gets created inside. As soon as the sym link exists before we call dhcpcd all works well. I've considered to create the missing sym link as part of one of the boot scripts. Then we would have the sym link set up before dhcpcd could even get called. The only disadvantage I see if that we would create a symbolic link even in the case it later isn't needed. We might check if /sbin/dhcpcd is an executable and if /var/run/ntp exits. The same check might make sense in the %post of the dhcpcd package. Setting Importance to Minor as this only hits a user if the ntp service is disabled. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=735146 https://bugzilla.novell.com/show_bug.cgi?id=735146#c2 --- Comment #2 from Frederic Crozat <fcrozat@suse.com> 2011-12-07 08:48:23 UTC --- wouldn't it be better to create /var/run/ntp using a file in /usr/lib/tmpfiles.d/ (which is used by systemd to create temporary files / dir) and bind mount this directory before chrooting ntp ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=735146 https://bugzilla.novell.com/show_bug.cgi?id=735146#c Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |lmuelle@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=735146 https://bugzilla.novell.com/show_bug.cgi?id=735146#c3 Lars Müller <lmuelle@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Status|NEEDINFO |NEW InfoProvider|lmuelle@suse.com | --- Comment #3 from Lars Müller <lmuelle@suse.com> 2012-01-09 17:39:00 CET --- If I get the documentation right /usr/lib/tmpfiles.d/ is only of use for the systemd case. Also we have to keep in mind that the ntp service might run chrooted or non chrooted. I don't see from man 5 tmpfiles.d how to make the creation of a directory conditional. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=735146 https://bugzilla.novell.com/show_bug.cgi?id=735146#c4 --- Comment #4 from Frederic Crozat <fcrozat@suse.com> 2012-01-09 16:49:05 UTC --- I think some changes have been done for factory to use tmpfiles.d for both systemd and systemv but I'm not 100% sure. It is not possible to have the directory creation conditional. But I don't think it would be a problem to use tmpfiles.d anyway, it will empty the directory if it exists and reset its owner according to tmpfiles.d -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=735146 https://bugzilla.novell.com/show_bug.cgi?id=735146#c5 Lars Müller <lmuelle@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ug@suse.com --- Comment #5 from Lars Müller <lmuelle@suse.com> 2012-01-09 20:36:38 CET --- I have to correct my comment#3. If I get it right the ntp package doesn't need to handle /var/run/ntp like bind has to do it with /var/run/named. For bind we have to consider to follow the same approach. This would allow us to use /usr/lib/tmpfiles.d/ for bind too and would make the whole sym link change mechanism as it is in use by the bind and lwresd init script a bit less fragile. @Uwe: What do you think? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=735146 https://bugzilla.novell.com/show_bug.cgi?id=735146#c Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |ug@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=735146 https://bugzilla.novell.com/show_bug.cgi?id=735146#c6 --- Comment #6 from Stefan Behlert <behlert@suse.com> 2012-06-19 11:53:46 UTC --- Ping. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=735146 https://bugzilla.novell.com/show_bug.cgi?id=735146#c8 Michael Calmer <mc@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|ug@suse.com | InfoProvider|ug@suse.com |max@suse.com --- Comment #8 from Michael Calmer <mc@suse.com> 2012-09-19 13:56:15 UTC --- maybe new maintainer can answer -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=735146 https://bugzilla.novell.com/show_bug.cgi?id=735146#c9 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|max@suse.com | Resolution| |NORESPONSE --- Comment #9 from Frederic Crozat <fcrozat@suse.com> 2013-03-11 16:08:08 UTC --- no response, closing -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com