first commit
This commit is contained in:
14
hosts_daemon.service
Normal file
14
hosts_daemon.service
Normal file
@ -0,0 +1,14 @@
|
||||
[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
|
Reference in New Issue
Block a user