Commit 4514c03b authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Add phrik systemd service

parent b91af4fc
[Unit]
Description=The official Arch Linux IRC bot
[Service]
ExecStart=/home/phrik/venv/bin/supybot /home/phrik/phrik/phrik.conf
Restart=on-failure
NoNewPrivileges=true
ProtectSystem=full
User=phrik
[Install]
WantedBy=default.target
---
- name: daemon reload
command: systemctl daemon-reload
......@@ -17,3 +17,11 @@
- name: install phrik sudoers config
copy: src=sudoers dest=/etc/sudoers.d/phrik
- name: install phrik systemd service
copy: src=phrik.service dest=/etc/systemd/system/phrik.service
notify:
- daemon reload
- name: start and enable phrik service
service: name="phrik.service" enabled=yes state=started
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment