Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252186 - net-misc/freenet6 init-script needs to stop the program using HUP signal
Summary: net-misc/freenet6 init-script needs to stop the program using HUP signal
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-22 15:36 UTC by Christian Limberg
Modified: 2008-12-30 13:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
start-stop-daemon is using SIGHUP to stop gw6c (gw6c.rc.diff,314 bytes, patch)
2008-12-22 15:39 UTC, Christian Limberg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Limberg 2008-12-22 15:36:03 UTC
When trying to stop gw6c by using

$ /etc/init.d/gwc6 stop

the process is stopped the wrong way. Like suggested by '/etc/freenet6/template/linux.sh:109' SIGHUP should be used to kill the process so that the "Tunnel destruction script" gets executed.

The destruction script is important because it terminates the tunnel, removes the advertised ipv6-prefix from the local link and terminates radvd (if using freenet6 in router mode). At the current state it is impossible to start gw6c again, without cleaning up manually.

Reproducible: Always
Comment 1 Christian Limberg 2008-12-22 15:39:00 UTC
Created attachment 176158 [details, diff]
start-stop-daemon is using SIGHUP to stop gw6c
Comment 2 Wormo (RETIRED) gentoo-dev 2008-12-24 08:12:05 UTC
Thanks for the report and posting your fix; assigning to 
Comment 3 Wormo (RETIRED) gentoo-dev 2008-12-24 08:12:46 UTC
ahem... assigning to the ebuild maintainer.
Comment 4 Bernard Cafarelli gentoo-dev 2008-12-30 13:37:53 UTC
Thanks for the analysis and patch, init script fixed in CVS!