Add systemd service file for dns-updater to manage application lifecycle
This commit is contained in:
14
dns-updater.service
Normal file
14
dns-updater.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=dns-updater
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=www-data
|
||||
Group=www-data
|
||||
WorkingDirectory=/home/slawek/src/dns-updater
|
||||
Environment="MIAB_HOST=box.koszewscy.waw.pl"
|
||||
ExecStart=/usr/bin/gunicorn --workers 4 --bind 0.0.0.0:8080 app:app
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user