[oe] [meta-networking][PATCH] ntp: make daemon run under ntp:ntp

Koen Kooi koen at dominion.thruhere.net
Tue Oct 28 11:23:34 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Qi.Chen at windriver.com schreef op 28-10-14 04:27:
> From: Chen Qi <Qi.Chen at windriver.com>
> 
> Fix the service so that the ntpd daemon is run under ntp:ntp.
> 
> Signed-off-by: Chen Qi <Qi.Chen at windriver.com> --- 
> 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?

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFUT3y2MkyGM64RGpERAtEyAKC8qvQHY46gq2orocsyv1XW2pfedgCeJ1zt
B/CVWPNqMCM4wBVm5oTviog=
=3fjp
-----END PGP SIGNATURE-----




More information about the Openembedded-devel mailing list