Add template for systemd service.
This commit is contained in:
parent
c4d1452f8a
commit
79a81bb9d1
|
@ -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
|
Loading…
Reference in New Issue