deploy: persistent systemd unit running a pinned release binary with Restart=on-failure + boot enable, plus a liveness timer that restarts the daemon if a register round-trip stops answering

This commit is contained in:
Jean Chevronnet 2026-08-12 16:01:58 +00:00
parent b022189fa5
commit 2aaa5ac091
4 changed files with 76 additions and 0 deletions

View file

@ -0,0 +1,8 @@
[Unit]
Description=echoIRCd liveness probe — restart the daemon if it stops responding
[Service]
Type=oneshot
# a hung (but not exited) daemon isn't caught by Restart=on-failure; this probe
# does a real register round-trip and restarts the service if it doesn't answer.
ExecStart=/home/debian/irc/ircd/echoIRCd/scripts/liveness.sh 6767