Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318033 - net-misc/aiccu-2007.01.15: no restart handler defined in /etc/init.d/aiccu
Summary: net-misc/aiccu-2007.01.15: no restart handler defined in /etc/init.d/aiccu
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Guy Martin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-01 18:15 UTC by Bibär.ch
Modified: 2010-06-28 21:04 UTC (History)
4 users (show)

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


Attachments
Patch for /etc/init.d/aiccu (aiccu.patch,322 bytes, patch)
2010-05-01 18:54 UTC, Bibär.ch
Details | Diff
added two-secont-wait to fix the issue (aiccu.init.gentoo.patch,324 bytes, patch)
2010-05-14 09:44 UTC, Bibär.ch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bibär.ch 2010-05-01 18:15:43 UTC
The command `/etc/init.d/aiccu restart` does only work correctly, when i run it twice.
This is very ugly, because the ipv6 tunnel-configuration doesn't get reloaded, after a change or network error.

Reproducible: Always

Steps to Reproduce:
1. Setup a ipv6 tunnel with a tunnel broker
2. break the connection your endpoint and the ipv4 pop
3. restore the connection
4. run `/etc/init.d/aiccu restart` once

Actual Results:  
the tunnel didn't get up until i run `/etc/init.d/aiccu restart` the second time

Expected Results:  
aiccu should have been restarted.

you can fix it by adding those lines:
#----------------------------------------------------------------------
reload() {
        ebegin "Restarting aiccu"

        start-stop-daemon --stop --oknodo --quiet --exec /usr/sbin/aiccu -- stop

        start-stop-daemon --start --oknodo --quiet --exec /usr/sbin/aiccu -- start

        eend $?
}
Comment 1 Bibär.ch 2010-05-01 18:54:14 UTC
Created attachment 229925 [details, diff]
Patch for /etc/init.d/aiccu
Comment 2 Bibär.ch 2010-05-01 19:00:13 UTC
Added maintainer to bug.
Comment 3 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-05-05 11:48:53 UTC
There is also bug 248669.
Comment 4 Bibär.ch 2010-05-14 09:44:41 UTC
Created attachment 231407 [details, diff]
added two-secont-wait to fix the issue

I saw, that the reload() function was ignored with the restart argument.

Because the start() function only work's when no aiccu-process is running, i added a little sleep to the stop() function.
Comment 5 Christian Ruppert (idl0r) gentoo-dev 2010-06-28 21:04:01 UTC
Fixed in net-misc/aiccu-2007.01.15-r1, thanks guys!