mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
ntp: move systemd support from meta-systemd back to meta-networking
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=Network Time Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/run/ntpd.pid
|
||||
ExecStart=/usr/bin/ntpd -p /run/ntpd.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=Network Time Service (one-shot ntpdate mode)
|
||||
Before=ntpd.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/ntpdate-sync silent
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,28 +0,0 @@
|
||||
inherit systemd
|
||||
|
||||
PRINC := "${@int(PRINC) + 2}"
|
||||
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
SYSTEMD_PACKAGES = "${PN} ntpdate"
|
||||
SYSTEMD_SERVICE_${PN} = "ntpd.service"
|
||||
SYSTEMD_SERVICE_ntpdate = "ntpdate.service"
|
||||
RPROVIDES_${PN} += "${PN}-systemd"
|
||||
RREPLACES_${PN} += "${PN}-systemd"
|
||||
RCONFLICTS_${PN} += "${PN}-systemd"
|
||||
RPROVIDES_ntpdate += "ntpdate-systemd"
|
||||
RREPLACES_ntpdate += "ntpdate-systemd"
|
||||
RCONFLICTS_ntpdate += "ntpdate-systemd"
|
||||
|
||||
FILES_ntpdate += "${systemd_unitdir}/system/ntpdate.service"
|
||||
|
||||
SRC_URI += " \
|
||||
file://ntpdate.service \
|
||||
file://ntpd.service \
|
||||
"
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${WORKDIR}/ntpdate.service ${D}${systemd_unitdir}/system/
|
||||
install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_unitdir}/system/
|
||||
}
|
||||
Reference in New Issue
Block a user