logmgmt: update for stx 5.0
* update the dependency on python3 according to: ``````````````````````````````````````````````` commit 7552f4a0f58e73a74e4506cb86674047b2d83c18 Author: Ran An <ran1.an@intel.com> Date: Fri May 15 01:34:37 2020 +0000 Update logmgmt to use python3 This reverts commit 115332ef6b0016393e6af9a65eadc1911be2be33. Change python to python3 about script and spec fix log runtime errors in python3 env 1. layer build OK 2. logmgmt.service running and stop ok 3. log rotate and force rotate ok 4. logmgmt manage and delete monitored or unmonitored log ok 5. logmgmgt.log back up ok Story: 2007106 Task: 39288 Depends-on: https://review.opendev.org/#/c/728323/ Depends-on: https://review.opendev.org/#/c/728325/ Signed-off-by: Long Li <lilong-neu@neusoft.com> Signed-off-by: SidneyAn <ran1.an@intel.com> ``````````````````````````````````````````````` * fix the installation mode for logmgmt.service Story: 2008952 Task: 42576 Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Change-Id: I7d1601fba8a4dfd2109c1b1b1f5f6fdb6eb407dd
This commit is contained in:
parent
d7980806b2
commit
0cd9df4f79
@ -8,10 +8,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
|
||||
RDEPENDS_${PN}_append = " \
|
||||
systemd \
|
||||
python-daemon \
|
||||
python3-daemon \
|
||||
"
|
||||
|
||||
inherit setuptools systemd
|
||||
inherit setuptools3 systemd
|
||||
SYSTEMD_PACKAGES += "logmgmt"
|
||||
SYSTEMD_SERVICE_${PN} = "logmgmt.service"
|
||||
SYSTEMD_AUTO_ENABLE_${PN} = "enable"
|
||||
@ -42,6 +42,6 @@ do_install_append() {
|
||||
install -m0700 pmon.d/logmgmt ${D}/${sysconfdir}/pmon.d
|
||||
|
||||
install -d -m0755 ${D}/${systemd_system_unitdir}
|
||||
install -m0664 etc/systemd/system/logmgmt.service ${D}/${systemd_system_unitdir}
|
||||
install -m0644 etc/systemd/system/logmgmt.service ${D}/${systemd_system_unitdir}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user