Closed pushcx closed 6 years ago
Looking at Systemd's exit codes, this means that the reload task has an ENOENT on some execve call.
I found that it's the /usr/bin/kill
that doesn't exist at this path on ubuntu... (and on most distros).
I'm comming with a PR to solve this. I've also digged into Unicorn and Systemd and it seems that the reload trick in unicorn's configuration is helping systemd a lot!
The new unicorn systemd service works correctly to restart unicorn on deploy but reports failure:
unicorn.stderr.log
reports a clean restart exactly as before the systemd servicesystemctl status lobsters-unicorn.service
says:journalctl -xe
says:My reading is that systemd thinks unicorn has crashed when the unicorn master and/or worker processes exit with with code 203 to indicate they're restarting. Can we configure the service to consider that a clean restart?
Tagging contributors to #23 @jstoja @PeterFaiman because y'all obviously know systemd better than me.