Add systemd service file for bot
This commit is contained in:
parent
9a33539e16
commit
cf11d2bbf7
20
install/bot-server.service
Normal file
20
install/bot-server.service
Normal 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
|
Loading…
Reference in New Issue
Block a user