Add systemd service file for bot

This commit is contained in:
Junior 2024-11-23 15:52:59 +00:00
parent 9a33539e16
commit cf11d2bbf7

View File

@ -0,0 +1,20 @@
[Unit]
# Set this to something specific for this bot
Description="CircleBot Instance"
[Service]
ExecStart=/usr/bin/npm start
# Set this to the bot's top level directory
WorkingDirectory=/opt/bots/CircleBot
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
# Set this to something specific for this bot
SyslogIdentifier=CircleBot
# Set these to the appropriate owner of the bot folders
User=botuser
Group=botuser
[Install]
WantedBy=multi-user.target