Files
ops-PostOffice/systemd/postoffice.service
2019-06-11 17:44:16 +03:30

17 lines
394 B
Desktop File

[Unit]
Description=PostOffice SMTPD Daemon
After=network.target
[Service]
PIDFile=/run/postoffice/postoffice.pid
# User=user
# Group=group
RuntimeDirectory=postoffice
WorkingDirectory=/location/to/postoffice
ExecStart=/usr/bin/python3 -u smtpd.py localhost 12345
# ExecReload=/bin/kill -s HUP $MAINPID
# ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target