Due to an alarm this morning, I took a quick look at the aphlict systemd unit, and it's completely broken and needs to be rewritten.
- systemctl start aphlict.service starts the service, but since the program forks to call php, which then calls nodejs, there is no way for systemd to track which pid it should refer to and it thinks the service is dead.
- The ExecReload command is wrong as well, as a consequence
- Restarting the service doesn't work
- This unit specifies KillMode=process and I'd like to know why, given I cannot see a good reason to leave stray processes if the main pid is killed with SIGKILL. What you want is to use mixed I guess.