Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248669 - net-misc/aiccu-2007.01.15 fails to stop
Summary: net-misc/aiccu-2007.01.15 fails to stop
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Guy Martin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-24 18:58 UTC by Michael Gaber
Modified: 2010-06-28 21:03 UTC (History)
4 users (show)

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


Attachments
Diff of /etc/init.d/aiccu (aiccu.diff,564 bytes, patch)
2009-03-18 11:32 UTC, Matthias Maier
Details | Diff
Diff of /etc/init.d/aiccu, correct version (aiccu.diff,570 bytes, patch)
2009-03-18 11:36 UTC, Matthias Maier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gaber 2008-11-24 18:58:38 UTC
start-stop-daemon seems to be unable to stop aiccu with the specified command in /etc/init.d/aiccu

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

if run manually it gives this output

# start-stop-daemon --stop --oknodo -v --exec /usr/sbin/aiccu -- stop
 * Will stop /usr/sbin/aiccu

 * Will stop processes of `/usr/sbin/aiccu'
 * start-stop-daemon: no matching processes found


if running 

# start-stop-daemon -v --exec /usr/sbin/aiccu -- stop

it works but i don't think this is the recommended way ;)

Reproducible: Always
Comment 1 Phil 2009-01-31 16:49:55 UTC
Hi!

Same problem here. It seems like a call to start-stop-daemon with params
'--stop' and '--exec /path/to/bin' doesn't call '/path/to/bin'.

The easiest way to fix this problem here is to remove the use of
start-stop-daemon completely, so starting aiccu is done via '/usr/sbin/aiccu
start' and '/usr/sbin/aiccu stop' to stop it, respectively.

Greetings, Phil
Comment 2 Matthias Maier gentoo-dev 2009-03-18 11:29:12 UTC
Hello.

A better way would be to use start-stop-daemon, due to the fact that multiple instances of aiccu could be present.

It seems that the --pidfile - toggle for start-stop-daemon is missing:

start-stop-daemon --stop --pidfile /var/run/aiccu.pid --quiet --exec /usr/sbin/aiccu stop

actually solves the problem.
Comment 3 Matthias Maier gentoo-dev 2009-03-18 11:32:15 UTC
Created attachment 185406 [details, diff]
Diff of /etc/init.d/aiccu
Comment 4 Matthias Maier gentoo-dev 2009-03-18 11:36:23 UTC
Created attachment 185407 [details, diff]
Diff of /etc/init.d/aiccu, correct version
Comment 5 Conrad Kostecki gentoo-dev 2009-07-11 10:11:10 UTC
Thank You :)
Solved my problem with aiccu!
Comment 6 Tom Hendrikx 2009-07-25 15:47:44 UTC
This seems to work for me too.
+1 for commit
Comment 7 Pavel Volkov 2010-05-06 11:26:11 UTC
Worked for me as well. Why is this still not in portage?
Comment 8 Christian Ruppert (idl0r) gentoo-dev 2010-06-28 21:03:21 UTC
Fixed in net-misc/aiccu-2007.01.15-r1, thanks guys!