15
roles/ninjabot/templates/systemd/system/ninjabot.service.j2
Normal file
15
roles/ninjabot/templates/systemd/system/ninjabot.service.j2
Normal file
@ -0,0 +1,15 @@
|
||||
{{ ansible_header | comment }}
|
||||
[Unit]
|
||||
Description=NinjaBot IRC bot
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/var/local/ninjabot
|
||||
User=nobody
|
||||
Group=nogroup
|
||||
ExecStart=/usr/bin/python3 /var/local/ninjabot/ninjabot.py
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user