ntp: make daemon run under ntp:ntp
PATCH 1/1 ntp: make daemon run under ntp:ntp
From: Chen Qi <[email protected]>
Fix the service so that the ntpd daemon is run under ntp:ntp.
--- meta-networking/recipes-support/ntp/ntp/ntpd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/ntp/ntp/ntpd.service +1 -1
@@ -5,7 +5,7 @@ After=network.target [Service] Type=forking PIDFile=/run/ntpd.pid -ExecStart=/usr/sbin/ntpd -p /run/ntpd.pid -g +ExecStart=/usr/sbin/ntpd -u ntp:ntp -p /run/ntpd.pid -g [Install] WantedBy=multi-user.target
Signature · 1 line
1.9.1
Quoted 3 lines · On Tue, Oct 28, 2014 at 4:27 AM, <[email protected]> wrote:
From: Chen Qi <[email protected]>
Fix the service so that the ntpd daemon is run under ntp:ntp.
What does this fix?
Andreas
Peter A. Bigot
Acked-byQuoted 5 lines · Andreas Müller
Quoted 3 lines · On Tue, Oct 28, 2014 at 4:27 AM, <[email protected]> wrote:
From: Chen Qi <[email protected]>
Fix the service so that the ntpd daemon is run under ntp:ntp.
What does this fix?
Primarily, I suspect, it makes systemd consistent with the existing init script.
It also provides a reason for the previous patches that moved the driftfile out of /etc to a location that user ntp can write, which was done earlier.
Peter
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[email protected] schreef op 28-10-14 04:27:
Quoted 14 lines
From: Chen Qi <[email protected]>
Fix the service so that the ntpd daemon is run under ntp:ntp.
Signed-off-by Chen Qi <[email protected]> ---meta-networking/recipes-support/ntp/ntp/ntpd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0
-0b/meta-networking/recipes-support/ntp/ntp/ntpd.service index b7c4268..0e3d7cd 100644 --- a/meta-networking/recipes-support/ntp/ntp/ntpd.service +++ b/meta-networking/recipes-support/ntp/ntp/ntpd.service @@ -5,7 +5,7 @@ After=network.target [Service] Type=forking PIDFile=/run/ntpd.pid
Review
Quoted 2 lines
(quoted diff) +0
-2-ExecStart=/usr/sbin/ntpd -p /run/ntpd.pid -g +ExecStart=/usr/sbin/ntpd -u ntp:ntp -p /run/ntpd.pid -g
Wouldn't User=ntp be a better approach, or does ntp need more priviliges during startup before dropping then and su'ing?
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFUT3y2MkyGM64RGpERAtEyAKC8qvQHY46gq2orocsyv1XW2pfedgCeJ1zt B/CVWPNqMCM4wBVm5oTviog=
=3fjp
-----END PGP SIGNATURE-----
Quoted 12 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1[email protected] schreef op 28-10-14 04:27:
Quoted 8 lines
From: Chen Qi <[email protected]>
Fix the service so that the ntpd daemon is run under ntp:ntp.
Signed-off-by Chen Qi <[email protected]> ---meta-networking/recipes-support/ntp/ntp/ntpd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 10 lines
Review
Quoted 8 lines
(quoted diff) +0
-0b/meta-networking/recipes-support/ntp/ntp/ntpd.service index b7c4268..0e3d7cd 100644 --- a/meta-networking/recipes-support/ntp/ntp/ntpd.service +++ b/meta-networking/recipes-support/ntp/ntp/ntpd.service @@ -5,7 +5,7 @@ After=network.target [Service] Type=forking PIDFile=/run/ntpd.pid
(quoted diff) +0
-2-ExecStart=/usr/sbin/ntpd -p /run/ntpd.pid -g +ExecStart=/usr/sbin/ntpd -u ntp:ntp -p /run/ntpd.pid -gWouldn't User=ntp be a better approach, or does ntp need more priviliges during startup before dropping then and su'ing?
If kernel PPS is enabled (which it is by default), ntp does need additional privileges during startup.
Peter
Joe MacDonald
AppliedMerged, thanks.
-J.
Quoted 25 lines · [[oe] [meta-networking][PATCH] ntp: make daemon run under ntp:ntp] On 14.10.28…
From: Chen Qi <[email protected]>
Fix the service so that the ntpd daemon is run under ntp:ntp.
Signed-off-by Chen Qi <[email protected]>--- meta-networking/recipes-support/ntp/ntp/ntpd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-networking/recipes-support/ntp/ntp/ntpd.service +1
-1@@ -5,7 +5,7 @@ After=network.target [Service] Type=forking PIDFile=/run/ntpd.pid -ExecStart=/usr/sbin/ntpd -p /run/ntpd.pid -g +ExecStart=/usr/sbin/ntpd -u ntp:ntp -p /run/ntpd.pid -g [Install] WantedBy=multi-user.targetSignature · 1 line
1.9.1
Signature · 2 lines
-Joe MacDonald. :wq