hosts_daemon/hosts_daemon.service
2025-03-08 20:12:12 +01:00

15 lines
416 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