From 95af148ceb1297c0a716c75d7c6948e47b3e927a Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Thu, 19 Dec 2019 17:42:30 +0100 Subject: [PATCH] Add systemd service --- pymilter-suspicious-from.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pymilter-suspicious-from.service diff --git a/pymilter-suspicious-from.service b/pymilter-suspicious-from.service new file mode 100644 index 0000000..0a74346 --- /dev/null +++ b/pymilter-suspicious-from.service @@ -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 +