Browse Source

Add service file(not tested)

master
Jaeha Choi 1 year ago
parent
commit
9edcb176b7
No known key found for this signature in database GPG Key ID: 948172BF60F9DBFD
  1. 12
      etc/leetcode-bot.service

12
etc/leetcode-bot.service

@ -0,0 +1,12 @@
[Unit]
Description=Discord Leetcode bot
After=multi-user.target
[Service]
ExecStart=/usr/bin/python3 bot.py #put_your_token_here
WorkingDirectory=/discord_bot/leetcode_bot
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save