Fix bug with activation count for auto-restart services
authorDavin McCall <davmac@davmac.org>
Mon, 13 Apr 2020 02:12:13 +0000 (12:12 +1000)
committerDavin McCall <davmac@davmac.org>
Mon, 13 Apr 2020 02:12:13 +0000 (12:12 +1000)
commitccdf8b687d3c31da98f7b9778ecd83751b8a3e96
tree84c6485f183238fe53cf12d9bda776da77340060
parent7f82382b6ed020d99706bb39fca4490d78f2c5ea
Fix bug with activation count for auto-restart services

This could result in shutdown failure. Also, when stopping such a
process via dinitctl, the process would always restart if it had any
dependents (including soft); fix that.
src/proc-service.cc
src/service.cc
src/tests/proctests.cc