The monkeyd init.d script will _always_ fail to `stop' monkeyd and ends up running the kill section, because monkey doesn't accept a stop flag(and to the best of my knowledge I don't believe it ever has). The patch attached fixes this and just kills it straight out, resulting in no more ~strange~ and incorrect failed messages when shutting down the server. While looking at the script I also noted that it sends cruft at the monkey command on startup too; monkey doesn't accept a start flag(well it does but it is doesn't use it ;). The patch attached fixes both of these problems. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 51588 [details, diff] monkeyd-fix-initd-stop.patch
i dont like running `kill` ... does this work for you in the stop() func ? start-stop-daemon --stop --quiet --pidfile ${MONKEY_PID}
Yeah, it works fine ;) Just out of curiousity is that a Gentoo policy or personal preference? I'm just curious really, so ignore at will.
Created attachment 51723 [details, diff] monkeyd-fix-initd-stop.patch Just an update with SpanKY's suggested method instead of calling kill directly.
no, there is no policy ... personal experience has shown running `start-stop-daemon` on pid files to be a much more robust method than executing `kill` added to 0.9.0-r1, thanks :)