]> git.ipfire.org Git - thirdparty/chrony.git/commit
examples: fix unset OPTIONS variable warning in systemd services
authorAndreas Fenkart <extern-afe@mission-embedded.com>
Mon, 12 May 2025 08:32:57 +0000 (10:32 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 12 May 2025 09:31:42 +0000 (11:31 +0200)
commit0bf7e4914817ffbb21c6bdc7cf04b6f76516d833
tree802eec4e213fadcf8f4bfabd74dad78e014be383
parentf5fdfee1503681f74e9f559819abed7ff40e9468
examples: fix unset OPTIONS variable warning in systemd services

Modify chronyd.service to handle cases where OPTIONS is undefined,
which occurs when /etc/sysconfig/chronyd doesn't exist or doesn't set
the variable. This prevents the warning:

 "chronyd.service: Referenced but unset environment variable
  evaluates to an empty string: OPTIONS"
examples/chronyd-restricted.service
examples/chronyd.service