On 10/28/2014 06:23 AM, Koen Kooi wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[email protected] schreef op 28-10-14 04:27:
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(-)

diff --git a/meta-networking/recipes-support/ntp/ntp/ntpd.service
b/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
-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?

If kernel PPS is enabled (which it is by default), ntp does need additional privileges during startup.

Peter
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to