mirror of
https://github.com/OPSnet/PostOffice.git
synced 2026-01-16 23:05:38 -05:00
18 lines
489 B
Desktop File
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 |