-
Notifications
You must be signed in to change notification settings - Fork 25
Deployment
Дамјан Георгиевски edited this page May 3, 2020
·
5 revisions
I run the bot on Debian 10 as a systemd service. An Erlang release is copied to /opt/ircbot
. And a settings.cfg
file is configured in /etc/ircbot/settings.cfg
.
# /etc/systemd/system/ircbot.service
[Unit]
Description=ircbot
After=syslog.target couchdb.service
[Service]
User=ircbot
RuntimeDirectory=erlbot
WorkingDirectory=/run/ircbot
Environment=HOME=/run/ircbot
Environment=CONF=/etc/ircbot/settings.cfg
Environment=SNAME=ircbot
ExecStart=/opt/ircbot/bin/ircbot -conf ${CONF}
Restart=always
SyslogIdentifier=ircbot
[Install]
WantedBy=multi-user.target