Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 61660
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: SpanKY <vapier@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Lars Geiger <lars.geiger@gmx.net>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
openntp.patch Patch for the openntp initscript patch Lars Geiger 2004-08-25 11:02 0000 336 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 61660 depends on: Show dependency tree
Bug 61660 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-08-25 10:48 0000
When openntpd starts, it creates two processes, one running as root, one as
user ntp:

eden ~ > ps aux | grep ntp
root      3673  0.0  0.2  2600 1072 ?        S    19:40   0:00 /usr/sbin/ntpd
ntp       3674  0.0  0.2  2600 1132 ?        S    19:40   0:00 /usr/sbin/ntpd

When stopping openntp, the initscript tries to stop all instances of ntpd:
'start-stop-daemon --stop --name ntpd'

But the process running as user ntp is killed automatically when the process of
root is killed. That is why start-stop-daemon can't kill the second process.

Reproducible: Always
Steps to Reproduce:
1. Run '/etc/init.d/openntpd stop'
Actual Results:  
eden ~ > /etc/init.d/openntpd stop
 * Stopping ntpd...
start-stop-daemon: warning: failed to kill 3673: No such process
1 pids were not killed

Expected Results:  
eden ~ > /etc/init.d/openntpd stop
 * Stopping ntpd...                           [ ok ]

eden ~ > emerge info
Portage 2.0.50-r10 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1,
2.6.8.1-eden1)
=================================================================
System uname: 2.6.8.1-eden1 i686 VIA Nehemiah
Gentoo Base System version 1.4.16
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -mcpu=i686 -Os -msse -mmmx -mfpmath=sse -pipe
-fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -mcpu=i686 -Os -msse -mmmx -mfpmath=sse -pipe
-fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache digest sandbox userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="acpi acpi4linux apache2 berkdb cle266 crypt dvd ethereal fbcon freetype gd
gtk2 hardenedphp idea imap jpeg libwww maildir md5sum mmx mpi mysql ncurses nls
pam perl png python readline samba sasl slang sse ssl tiff truetype usb x86 xml
xml2 zlib"

------- Comment #1 From Lars Geiger 2004-08-25 11:02:43 0000 -------
Created an attachment (id=38186) [details]
Patch for the openntp initscript

Fixes the problem by killing only the process running as root. Also removes an
unnecessary 'rm -f /var/run/ntpd.pid', which is not created by the initscript
nor openntpd itself.

------- Comment #2 From SpanKY 2004-08-25 17:52:58 0000 -------
added to portage, thanks

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug