Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45229 - ntpd init script fails to remove pid file after 'stop'
Summary: ntpd init script fails to remove pid file after 'stop'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
: 46058 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-20 12:54 UTC by Andy
Modified: 2004-04-05 16:20 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 Andy 2004-03-20 12:54:57 UTC
As it says on the tin, really. The /etc/init.d/ntpd init script does not remove the pidfile when told to 'stop'. This is possibly due to the start-stop-daemon script not having privlidges to remove a pidfile (ch)owned by ntp:ntp? Just a guess.

Result is that ntpd cannot be restarted until the old pidfile is manually removed.

Reproducible: Always
Steps to Reproduce:
1./etc/init.d/ntpd start
2./etc/init.d/ntpd stop
3./etc/init.d/ntpd start (fails)
4.Manually delete /var/run/ntpd.pid
5./etc/init.d/ntpd start (succeeds)
Actual Results:  
Script says ntpd cannot be started because it's already running. (it's not)

Expected Results:  
Started ntpd.
Comment 1 phasma 2004-03-20 13:01:21 UTC
a sort of bug #45199 duplicate.

the issue affects all scripts and in general runscript.sh

may be the routines have to be reviewed

regards

ph
Comment 2 SpanKY gentoo-dev 2004-03-21 07:30:44 UTC
you never said what version of ntpd you're using
Comment 3 Andy 2004-03-21 09:14:54 UTC
ara@hobbes ara $ qpkg -I ntp -vv
   /var/db/pkg/net-misc/ntp-4.1.2/ntp-4.1.2.ebuild

I did an emerge rsync && emerge -pU world before reporting the bug, and no pending updates were listed, so I presumed this problem still exists.
Comment 4 Denys Dmytriyenko 2004-03-29 12:53:57 UTC
See bug #46058 for more details.

Bug #45199 is invalid, since it is not really required to delete a PID file,
if start routine was a little bit smarted.
Comment 5 SpanKY gentoo-dev 2004-04-02 21:32:58 UTC
*** Bug 46058 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2004-04-05 16:20:25 UTC
fixed in cvs