Summary: | net-im/bitlbee initscript should check pidfile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jan Hruban <hrubi> |
Component: | Current packages | Assignee: | Alex Alexander (RETIRED) <wired> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | radhermit, wired |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
initscript patch
/etc/init.d/bitlbee patch Patch to fix pidfile usage |
Description
Jan Hruban
2012-05-31 23:45:39 UTC
Created attachment 313771 [details]
initscript patch
Thanks for submitting this initscript fix, assigning to maintainers This problem hasn't been resolved for me. start-stop-daemon still fails to kill the process with ESTABLISHED tcp connections. I've noticed it forks child processes regardless of whether or not Daemon or ForkDaemon is set in the config. Created attachment 322774 [details]
/etc/init.d/bitlbee patch
Since bitlbee creates the user and group bitlbee:bitlbee on install, I've found that using user-based termination with start-stop-daemon yielded better results. YMMV. The pid file isn't being generated on my system,(In reply to Xenith from comment #5) > Since bitlbee creates the user and group bitlbee:bitlbee on install, I've > found that using user-based termination with start-stop-daemon yielded > better results. YMMV. That'd kill off all children, all active sessions. Unnecessarily, imho. Created attachment 384580 [details, diff]
Patch to fix pidfile usage
This fix fixes the pidfile usage, and doesn't unnecessarily kill live sessions (children) during a restart.
This is fixed in bitlbee-3.2.1-r1. I used Xenith's user-based termination. This is what I'd expect the init script to do, anyway. Many thanks. /etc/init.d/bitlbee restart * Stopping bitlbee ... [ ok ] * Starting bitlbee ... [ ok ] :) |