diff --git a/Cargo.toml b/Cargo.toml index aa7de25..8488986 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ assets = [ "755", ], [ - "debian/cloudflare-dns-updater.service", + "debian/cloudflare-dns-updater-user.service", "/lib/systemd/user/cloudflare-dns-updater.service", "755", ], diff --git a/debian/cloudflare-dns-updater-user.service b/debian/cloudflare-dns-updater-user.service new file mode 100644 index 0000000..e83260c --- /dev/null +++ b/debian/cloudflare-dns-updater-user.service @@ -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=default.target \ No newline at end of file