mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
ntp: Running ntpd daemon as ntp:ntp
Adding ntp:ntp(user:group) to system and running ntpd dameon as ntp:ntp. Signed-off-by: Xufeng Zhang <xufeng.zhang@windriver.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
This commit is contained in:
committed by
Joe MacDonald
parent
238093bf8c
commit
7601d0a551
@@ -23,7 +23,7 @@ startdaemon(){
|
|||||||
# this. If ntpd seems to disappear after a while assume TICKADJ
|
# this. If ntpd seems to disappear after a while assume TICKADJ
|
||||||
# above is set to a totally incorrect value.
|
# above is set to a totally incorrect value.
|
||||||
echo -n "Starting ntpd: "
|
echo -n "Starting ntpd: "
|
||||||
start-stop-daemon --start -x /usr/bin/ntpd -- -p /var/run/ntp.pid "$@"
|
start-stop-daemon --start -x /usr/bin/ntpd -- -u ntp:ntp -p /var/run/ntp.pid "$@"
|
||||||
echo "done"
|
echo "done"
|
||||||
}
|
}
|
||||||
stopdaemon(){
|
stopdaemon(){
|
||||||
|
|||||||
@@ -25,13 +25,17 @@ SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.g
|
|||||||
file://ntpd.list \
|
file://ntpd.list \
|
||||||
"
|
"
|
||||||
|
|
||||||
inherit autotools update-rc.d systemd
|
inherit autotools update-rc.d useradd systemd
|
||||||
|
|
||||||
# The ac_cv_header_readline_history is to stop ntpdc depending on either
|
# The ac_cv_header_readline_history is to stop ntpdc depending on either
|
||||||
# readline or curses
|
# readline or curses
|
||||||
EXTRA_OECONF += "--with-net-snmp-config=no --without-ntpsnmpd ac_cv_header_readline_history_h=no"
|
EXTRA_OECONF += "--with-net-snmp-config=no --without-ntpsnmpd ac_cv_header_readline_history_h=no"
|
||||||
CFLAGS_append = " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED"
|
CFLAGS_append = " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED"
|
||||||
|
|
||||||
|
USERADD_PACKAGES = "${PN}"
|
||||||
|
USERADD_PARAM_${PN} = "--system --home-dir /var/lib/ntp \
|
||||||
|
--shell /bin/false --user-group ntp"
|
||||||
|
|
||||||
PACKAGECONFIG ??= ""
|
PACKAGECONFIG ??= ""
|
||||||
PACKAGECONFIG[openssl] = "--with-openssl-libdir=${STAGING_LIBDIR} \
|
PACKAGECONFIG[openssl] = "--with-openssl-libdir=${STAGING_LIBDIR} \
|
||||||
--with-openssl-incdir=${STAGING_INCDIR} \
|
--with-openssl-incdir=${STAGING_INCDIR} \
|
||||||
|
|||||||
Reference in New Issue
Block a user