https://bugzilla.novell.com/show_bug.cgi?id=230273 Summary: ntpd pid file problems Product: SUSE Linux 10.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: nannont@corona.imap.cc QAContact: qa@suse.de Two problems when ntpd runs chrooted (the default), causing 'rcntp stop' to not stop the ntpd: 1- ntp rc script should not put the chroot prefix on the pid file path when starting ntpd I patched it like this: --- ntp.10.1.orig 2006-12-21 11:43:15.000000000 -0500 +++ ntp.10.1.fixed 2006-12-21 11:43:22.000000000 -0500 @@ -61,6 +61,7 @@ CHROOT_PREFIX="" NTPD_PID="${CHROOT_PREFIX}/var/run/ntp/ntpd.pid" +NTPD_PID_NOPREFIX="/var/run/ntp/ntpd.pid" function ntpd_is_running() { $0 status >/dev/null @@ -164,7 +165,7 @@ exit 1 ;; esac fi - startproc $NTPD_BIN -p ${NTPD_PID} $NTPD_OPTIONS + startproc $NTPD_BIN -p ${NTPD_PID_NOPREFIX} $NTPD_OPTIONS rc_status -v ;; stop) 2- the /var/run/ntp directory needs to be writable by root, since the ntpd program creates the pid file before changing its UID to 'ntp'. However the /var/run/ntp dir got created, it was owned by ntp:ntp, with perms 0755. I changed it to 777 and now I get a pid file at startup and 'rcntp stop' works. I'm not sure that's the right fix, so I'll file this report and let you guys figure it out. Thanks. -- 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, or are watching someone who is.