Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 293222

Summary: net-nntp/hellanzb init script does not shutdown the daemon
Product: Gentoo Linux Reporter: Vladimir Brik <no.hope>
Component: Current packagesAssignee: Alexis Ballier <aballier>
Status: RESOLVED FIXED    
Severity: normal CC: net-news
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /etc/init.d/hellanzb stop() patch

Description Vladimir Brik 2009-11-14 23:38:01 UTC
start-stop-daemon in /etc/init.d/hellanzb does not shut down the hellanzb daemon.
Hellanzb daemon does not create a pid file and start-stop-daemon's --make-pidfile doesn't work when hellanzb is started as a daemon.
Comment 1 Vladimir Brik 2009-11-14 23:42:33 UTC
Created attachment 210280 [details, diff]
/etc/init.d/hellanzb stop() patch

This patch shuts down the hellanzb daemon by issuing it the "shutdown" command instead of using start-stop-daemon. Also, when restarted, the script sleeps for 1 second to allow old instance's socket to be relinquished
Comment 2 Alexis Ballier gentoo-dev 2010-04-23 13:46:58 UTC
applied, thanks