Add systemd service file for dns-updater to manage application lifecycle

This commit is contained in:
2025-12-28 13:03:08 +01:00
parent 59f3d2377d
commit 4b943ee0c9

14
dns-updater.service Normal file
View 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