Commit graph

9 commits

Author SHA1 Message Date
Indrajit Raychaudhuri
a624cb6c15 systemd: Add systemd service settings for better security
This adds additional settings to improve the security
of 'ddclient.service'.

The settings are based on basic [systemd guidelines][1]
and other security-related [guide][2] and [roadmap][3].

[1]: https://www.freedesktop.org/software/systemd/man/systemd.exec.html
[2]: https://www.redhat.com/sysadmin/systemd-secure-services
[3]: https://wiki.debian.org/ReleaseGoals/SystemdAnalyzeSecurity
2024-12-26 19:06:49 -06:00
Richard Hansen
21de3cbc96 systemd: Make it easier to override the daemon interval 2024-05-14 22:12:36 -04:00
Richard Hansen
509ea8745a systemd: Set Restart=on-failure 2024-05-14 22:12:36 -04:00
Richard Hansen
c0a1431f78 systemd: Use Type=exec instead of fork
When forking, ddclient redirects STDERR and STDOUT to `/dev/null`,
which prevents useful information from appearing in the systemd
journal (`journalctl`).
2024-05-14 22:12:36 -04:00
nl6720
6312030c57
sample-etc_systemd.service: order after nss-lookup.target
This improves the chances that the local DNS resolver (e.g. dnsmasq,
systemd-resolved, Unbound) is up before the service runs and avoids
DNS related failures.

Pull in network-online.target via Wants= to comply with its description
in the systemd.special(7) man page and remove the redundant
"After=network.target" since network-online.target already orders itself
after network.target.
2023-04-10 19:51:27 +03:00
Gabriel Cruz
98462633bd
Update pid file path from /run/var/ to /run 2022-04-03 17:00:59 -03:00
Quien Sabe
c09ea35052 Updated example service file to use network-online.target 2022-01-16 09:08:46 -07:00
Steve8291
6b7800380c Adjust path to ddclient
Installing with `make install` automatically places the ddclient
executable in `/usr/bin/ddclient`. This service file has the wrong
path and that causes systemd to be unable to start ddclient.
2020-07-10 12:04:21 -04:00
Bumsik Kim
3feaf02ebb Add systemd sample and instruction 2019-03-20 12:29:47 +00:00