summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-03-29 21:05:06 +0200
committerChristian Breunig <christian@breunig.cc>2023-03-29 21:06:30 +0200
commitdb0fc992c0f1e3f1ab6f099b07b933bfca07d520 (patch)
treeb70cb47eac517663d63f59f8e2014157ec410099 /data/templates
parentc57494027bd3b5865634c62ccd97f44e1d75c546 (diff)
downloadvyos-1x-db0fc992c0f1e3f1ab6f099b07b933bfca07d520.tar.gz
vyos-1x-db0fc992c0f1e3f1ab6f099b07b933bfca07d520.zip
ntp: T3008: start daemon with extended privileges but then drop to _chrony
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/chrony/override.conf.j23
1 files changed, 1 insertions, 2 deletions
diff --git a/data/templates/chrony/override.conf.j2 b/data/templates/chrony/override.conf.j2
index 0ab8f0824..b8935ae76 100644
--- a/data/templates/chrony/override.conf.j2
+++ b/data/templates/chrony/override.conf.j2
@@ -5,10 +5,9 @@ ConditionPathExists={{ config_file }}
After=vyos-router.service
[Service]
-User=root
EnvironmentFile=
ExecStart=
-ExecStart={{ vrf_command }}/usr/sbin/chronyd -F 1 -f {{ config_file }}
+ExecStart=!{{ vrf_command }}/usr/sbin/chronyd -F 1 -f {{ config_file }}
PIDFile=
PIDFile={{ config_file | replace('.conf', '.pid') }}
Restart=always