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

18 lines
489 B
Desktop File

[Unit]
Description=PostMaster web server
Requires=postmaster.socket
After=network.target
[Service]
PIDFile=/run/postoffice/postmaster.pid
# User=user
# Group=group
RuntimeDirectory=postoffice
WorkingDirectory=/data/postoffice
ExecStart=/usr/local/bin/gunicorn --pid /run/postoffice/postmaster.pid --bind unix:/run/postoffice/postmaster.socket server:application
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target