Add systemd unit to debian package
All checks were successful
Run Tests on Code / run-tests (push) Successful in 21s
All checks were successful
Run Tests on Code / run-tests (push) Successful in 21s
This commit is contained in:
parent
ee2b492851
commit
5aa2f62c66
2 changed files with 22 additions and 0 deletions
|
@ -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]
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue