On Mar 26, 2015, at 4:16 AM, Emilien Kia <[email protected]> wrote:

> After looking a bit deeply, we have another little problem. When we intend to 
> start upsd with the init script (at least under debian-based distrib - tested 
> on Linux Mint 17.1) when we have the NSS problem, the init script exit with 
> the "[OK]" state even if the "real" deamon process does not run correctly.
> 
> Perhaps we could add some tests to validate if the deamonization is OK. But 
> it is a little bit out of my competencies (I am not a bash and 
> linux-init-process expert).

Are you still using 
http://bazaar.launchpad.net/~ubuntu-bugcontrol/qa-regression-testing/master/view/head:/scripts/test-nut.py
 to test?

That script already checks for PIDs of the daemons. It should not be hard to 
extend it to 'kill -0' each PID to check if it is still running. I admit that I 
have not tried this test script, though.

-- 
Charles Lepple
clepple@gmail



_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to