openuds/.gear/openuds-web.service

22 lines
523 B
Desktop File

[Unit]
Description=OpenUDS Broker Web server daemon
Requires=openuds-web.socket
After=network.target
[Service]
PIDFile=/run/openuds/pid
User=openuds
Group=openuds
RuntimeDirectory=openuds
WorkingDirectory=/usr/share/openuds
ExecStart=/usr/bin/gunicorn.py3 --pid /run/openuds/pid \
--bind unix:/run/openuds/socket server.wsgi \
--workers 5 --threads 8
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Also=openuds-web.socket