-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 15/01/17 17:34, Francesco Poli wrote: > On Sun, 15 Jan 2017 10:28:40 +0100 Daniel Pocock wrote: > >> >> >> On 10/01/17 23:49, Christian Hofstaedtler wrote: > [...] >>> here are some test packages with a systemd service file: >>> >>> https://people.debian.org/~zeha/apcupsd/ >>> >>> Please report back if those work for you and if the restart >>> issue is fixed. Note that successful testing also needs to >>> include a powerfail test really. >>> >> >> >> I installed that and tested with this loop: >> >> systemctl start apcupsd && while ps -C apcupsd ; do systemctl >> stop apcupsd ; sleep 0 ; systemctl start apcupsd ; ps -C apcupsd >> || echo FAILED ; done >> >> >> For about 3 minutes, it appears to restart correctly every time. >> >> I haven't done a full powerfail test so far. > > Hello Daniel, thanks for your feedback. > > I hope that Christian may soon finalize the NMU in order to have > this bug fixed once and for all. > > Christian, have you decided which strategy should be adopted for > the ISCONFIGURED handling? > > One other aspect of this issue remains: if apcupsd doesn't start for any reason (whether it is because of a rapid restart or some other fault), we need to verify that the init script or systemd realizes that the process failed to start. I think that for daemon processes, systemd may be more capable of detecting the case where the daemon fails after forking. Regards, Daniel -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYe61HAAoJEGxlgOd711bEbhoP/3It2UA8/TCmo5aT57Wdo2QL Vd1lt56zMq/snw+OOkDcQCYPhOuAsk9Ijz2qtX3f1Ou4/CKSsQaz3WTXDY/xJzMu 7o6qCPM80EuI5/txig1+d2asalkzztRv9b5H/LkbQcSOHtxmP2sylnQpzc7QnauP 8FYXunVkieNicbs4zTvFkJYH7PxUqmM5rLgA5d2gJZiNi/FKf8px+l+0WVDFk9nh gg4a1WpHVpm/mcABjXZRPicwa90oKw8dvxxJ/JiHo0BgdjwxjcLNr/wwSjdFjTAe +BVuVERkgVthsFPQfSJQL56zwWg/WMHhYRkUpaaMGrsgigVrge2AixvWZU9zSVXO gqui1dJLGQ7nRCEtdbUABOmpvH4+XZJZeqaq/spIJz9Y05nrTBFO9DRQpPu291+V BdQNry9lqJJBxwln9XkXA9Dn2RLjaKm/FBq+hsQsUz3OCC4vigA+iPoVhzjRlGI+ Q971lP1wEKGQnT6ZRJax6cZFrOQFOQyfxShQh9BlKfPkt5oMzShkNEsXUf2z0arY pf4K1vpMi8fODHs/angpxkxlHxMHt0FQ2OK5Gtl7++VMWt6x4cjgeWT6QvWOYMPE t5nbiGGNEiJ0aLbBb0mxXgYLY7uEjzZfmCQQwM4OusITYBXTe/yv2KQpMJ0Nyrb1 0ZWeezgxYUVHJ4qYVXWJ =j1i0 -----END PGP SIGNATURE-----