Add systemd unit to debian package
All checks were successful
Run Tests on Code / run-tests (push) Successful in 21s

This commit is contained in:
Neshura 2023-12-29 00:38:52 +01:00
parent ee2b492851
commit 5aa2f62c66
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 22 additions and 0 deletions

View file

@ -7,7 +7,16 @@ description = "Application for automatically updating Cloudflare DNS records"
license = "GPL-3.0-or-later"
[package.metadata.deb]
extended-description = "Application for automatically updating Cloudflare DNS records"
maintainer-scripts = ""
revision = "1"
[package.metadata.deb.systemd-units]
enable = true
start = true
restart-after-upgrade = true
stop-on-upgrde = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

View file

@ -0,0 +1,13 @@
[Unit]
Description="Application for automatically updating Cloudflare DNS records"
After=syslog.target
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/bin/cloudflare-dns-updater
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target