Duplicate pmon.d conf files to another location

Created a duplicate install of /etc/pmon.d/*.conf files
to /usr/share/starlingx/pmon.d/

This is part of an effort to allow pmon conf files
to be selected at runtime by kickstarts.

Test Plan:
PASS: duplicate conf on deb

Story: 2010211
Task: 46116

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: I3274d95c7b657447c79c2512cfcc2d7ba9898b4f
This commit is contained in:
Leonardo Fagundes Luz Serrano 2022-08-23 23:30:58 -03:00
parent e649130111
commit 3ca4151b87
3 changed files with 6 additions and 0 deletions

View File

@ -1,2 +1,3 @@
etc/pmon.d
usr/lib/python3/dist-packages/logmgmt*
usr/share/starlingx/pmon.d

View File

@ -3,3 +3,4 @@ etc/init.d/*
etc/pmon.d/*
usr/lib/systemd/system/logmgmt.service
usr/lib/python3/dist-packages/logmgmt*
usr/share/starlingx/pmon.d/*

View File

@ -6,6 +6,7 @@ export ROOT = $(CURDIR)/debian/tmp
export LOCAL_BINDIR = $(ROOT)/usr/bin
export LOCAL_ETC_INITD = $(ROOT)/etc/init.d
export LOCAL_ETC_PMOND = $(ROOT)/etc/pmon.d
export PMONDIR = $(ROOT)/usr/share/starlingx/pmon.d
export UNIT_DIR = $(ROOT)/usr/lib/systemd/system
%:
@ -29,6 +30,9 @@ override_dh_install:
install -d -m 755 $(LOCAL_ETC_PMOND)
install -p -D -m 644 scripts/pmon.d/logmgmt $(LOCAL_ETC_PMOND)/logmgmt
install -d -m 755 $(PMONDIR)
install -p -D -m 644 scripts/pmon.d/logmgmt $(PMONDIR)/logmgmt
install -p -D -m 644 scripts/etc/systemd/system/logmgmt.service $(UNIT_DIR)/logmgmt.service
dh_install