15 lines
414 B
Desktop File
15 lines
414 B
Desktop File
[Unit]
|
|
Description=Hosts Daemon Service
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=hostsdaemon
|
|
Group=hostsdaemon
|
|
WorkingDirectory=/opt/hosts_daemon
|
|
ExecStart=/opt/hosts_daemon/venv/bin/gunicorn --bind 0.0.0.0:8000 --certfile=/opt/hosts_daemon/ssl/hosts_daemon.crt --keyfile=/opt/hosts_daemon/ssl/hosts_daemon.key app:app
|
|
Restart=always
|
|
Environment="PATH=/opt/hosts_daemon/venv/bin"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|