Browse Source

Add SystemD unit file

Jonathon Reinhart 4 years ago
parent
commit
190c615029
1 changed files with 11 additions and 0 deletions
  1. 11 0
      service_files/smtprelay.service

+ 11 - 0
service_files/smtprelay.service

@@ -0,0 +1,11 @@
+[Unit]
+Description=SMTP Relay
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=simple
+ExecStart=/opt/smtprelay/bin/smtprelay -config /etc/smtprelay/smtprelay.ini
+
+[Install]
+WantedBy=multi-user.target