Add template for systemd service.

This commit is contained in:
Ceda EI 2018-11-04 19:59:00 +05:30
parent c4d1452f8a
commit 79a81bb9d1
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
[Unit]
Description=Questable Bot
After=Network.target
[Service]
Type=simple
User=some_unprivileged_user
ExecStart=/bin/sh -c 'cd /path/to/questable/ ; python3 bot.py'
[Install]
WantedBy=multi-user.target