Add systemd service

This commit is contained in:
Jan Philipp Timme 2019-12-19 17:42:30 +01:00
parent ac6f880e23
commit 95af148ceb
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
[Unit]
Description=Start and Stop pymilter-suspicious-from
After=syslog.target network.target
[Service]
ExecStart=/srv/venv/pymilter-suspicious-from/bin/python /srv/repo/pymilter-suspicious-from/main.py
# Use an unprivileged user here
User=pymilter-suspicious-from
[Install]
WantedBy=multi-user.target