ircd "address in use" via systemd up on crash, fills log file
I have the following systemd service file for my ircd
[Unit]
Description=Synchronet ircd
After=syslog.target network.target
[Service]
Type=simple
User=bbs
Group=bbs
#ExecStart=/sbbs/exec/jsexec -L0 -a -c /sbbs/ctrl -l -o/var/log/sbbs/ircd.log -e/var/log/sbbs/ircd.err ircd
ExecStart=/sbbs/exec/jsexec -L7 -l /sbbs/exec/ircd.js
#StandardOutput=syslog
#StandardError=syslog
SyslogIdentifier=ircd
[Install]
WantedBy=multi-user.target
If the ircd crashes for some reason, it will spam the log files with:
Apr 26 01:51:05 bbs ircd[922629]: Re-running: /sbbs/exec/ircd.js
Apr 26 01:51:05 bbs ircd[922629]: SynchronetIRCd-1.9 started.
Apr 26 01:51:05 bbs ircd[922629]: Trying to read configuration from: /sbbs/ctrl/ircd.conf
Apr 26 01:51:05 bbs ircd[922629]: Creating new socket object on port 6667
Apr 26 01:51:05 bbs ircd[922629]: 0009 !ERROR 98 binding IRCd socket to port 6667: Address already in use
Apr 26 01:51:05 bbs ircd[922629]: !Error Error: Unable to add host to socket set creating listening socket on port 6667
Apr 26 01:51:05 bbs ircd[922629]: !Module (/sbbs/exec/ircd.js) set exit_code: 1
This messages repeats 5-7 times per second. Left unchecked it will fill up a log in pretty short order.
REUSEADDR = TRUE in sockopts.ini
Need a fix so that the ircd will respawn.