Merge "Debian: Remove conf files from etc-pmon.d"

This commit is contained in:
Zuul 2022-09-30 19:41:16 +00:00 committed by Gerrit Code Review
commit 6bcd8333b2
6 changed files with 16 additions and 43 deletions

View File

@ -1,5 +1,4 @@
lib/systemd/system/hbsAgent.service lib/systemd/system/hbsAgent.service
etc/init.d/goenabledControl etc/init.d/goenabledControl
etc/init.d/hbsAgent etc/init.d/hbsAgent
etc/pmon.d/hbsAgent.conf
usr/share/starlingx/pmon.d/hbsAgent.conf usr/share/starlingx/pmon.d/hbsAgent.conf

View File

@ -12,10 +12,9 @@ override_dh_auto_install:
_sysconfdir=/etc \ _sysconfdir=/etc \
_unitdir=/lib/systemd/system \ _unitdir=/lib/systemd/system \
_datarootdir=/usr/share \ _datarootdir=/usr/share \
PMONDIR=$(PMONDIR) \
install install
install -m 644 -p -D scripts/hbsAgent.conf $(ROOT)/$(PMONDIR)/hbsAgent.conf
dh_install dh_install
override_dh_installsystemd: override_dh_installsystemd:

View File

@ -4,7 +4,7 @@ SOURCE3 = hbsAgent
SOURCE4 = hbsAgent.conf SOURCE4 = hbsAgent.conf
SOURCE5 = hbsAgent.service SOURCE5 = hbsAgent.service
local_etc_pmond = $(_sysconfdir)/pmon.d PMONDIR ?= $(_sysconfdir)/pmon.d
local_etc_goenabledd = $(_sysconfdir)/goenabled.d local_etc_goenabledd = $(_sysconfdir)/goenabled.d
.PHONY: default .PHONY: default
@ -21,12 +21,11 @@ install:
install -m 755 -p -D scripts/$(SOURCE3) $(buildroot)/$(_sysconfdir)/init.d/hbsAgent install -m 755 -p -D scripts/$(SOURCE3) $(buildroot)/$(_sysconfdir)/init.d/hbsAgent
# Controller-Only Process Monitor Config files # Controller-Only Process Monitor Config files
install -m 755 -d $(buildroot)/$(local_etc_pmond) install -m 755 -d $(buildroot)/$(PMONDIR)
install -m 644 -p -D scripts/$(SOURCE4) $(buildroot)/$(local_etc_pmond)/hbsAgent.conf install -m 644 -p -D scripts/$(SOURCE4) $(buildroot)/$(PMONDIR)/hbsAgent.conf
# Controller-Only Heartbeat Service file # Controller-Only Heartbeat Service file
install -m 644 -p -D scripts/$(SOURCE5) $(buildroot)/$(_unitdir)/hbsAgent.service install -m 644 -p -D scripts/$(SOURCE5) $(buildroot)/$(_unitdir)/hbsAgent.service
# Controller-Only Go Enabled Test # Controller-Only Go Enabled Test
install -m 755 -d $(buildroot)/$(local_etc_goenabledd) install -m 755 -d $(buildroot)/$(local_etc_goenabledd)

View File

@ -1,6 +1,5 @@
etc/init.d/lmon etc/init.d/lmon
etc/logrotate.d/lmon.logrotate etc/logrotate.d/lmon.logrotate
etc/mtc/lmond.conf etc/mtc/lmond.conf
etc/pmon.d/lmon.conf
usr/local/bin/lmond usr/local/bin/lmond
usr/share/starlingx/pmon.d/lmon.conf usr/share/starlingx/pmon.d/lmon.conf

View File

@ -18,15 +18,6 @@ etc/mtc.conf
etc/mtc.ini etc/mtc.ini
etc/mtc/fsmond.conf etc/mtc/fsmond.conf
etc/mtc/tmp etc/mtc/tmp
etc/pmon.d/acpid.conf
etc/pmon.d/fsmon.conf
etc/pmon.d/hbsClient.conf
etc/pmon.d/mtcClient.conf
etc/pmon.d/mtcalarm.conf
etc/pmon.d/mtclogd.conf
etc/pmon.d/sssd.conf
etc/pmon.d/sshd.conf
etc/pmon.d/syslog-ng.conf
etc/services.d/controller/mtcTest etc/services.d/controller/mtcTest
etc/services.d/storage/mtcTest etc/services.d/storage/mtcTest
etc/services.d/worker/mtcTest etc/services.d/worker/mtcTest

View File

@ -9,14 +9,13 @@ export OCFPLATFORMDIR = $(ROOT)/usr/lib/ocf/resource.d/platform
export SBINDIR = $(ROOT)/usr/sbin export SBINDIR = $(ROOT)/usr/sbin
export LOCAL_SBINDIR = $(ROOT)/usr/local/sbin export LOCAL_SBINDIR = $(ROOT)/usr/local/sbin
export UNITDIR = $(ROOT)/lib/systemd/system export UNITDIR = $(ROOT)/lib/systemd/system
export PMONDIR_1 = $(ROOT)/usr/share/starlingx/pmon.d export PMONDIR = $(ROOT)/usr/share/starlingx/pmon.d
export SYSCONFDIR = $(ROOT)/etc export SYSCONFDIR = $(ROOT)/etc
export BMCCONFDIR = $(SYSCONFDIR)/bmc/server_profiles.d export BMCCONFDIR = $(SYSCONFDIR)/bmc/server_profiles.d
export COLLECTDIR = $(SYSCONFDIR)/collect.d export COLLECTDIR = $(SYSCONFDIR)/collect.d
export INITDIR =$(SYSCONFDIR)/init.d export INITDIR =$(SYSCONFDIR)/init.d
export LOGDIR = $(SYSCONFDIR)/logrotate.d export LOGDIR = $(SYSCONFDIR)/logrotate.d
export PMONDIR_2 = $(SYSCONFDIR)/pmon.d
export SERVICESDIR = $(SYSCONFDIR)/services.d export SERVICESDIR = $(SYSCONFDIR)/services.d
export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ') export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
@ -107,30 +106,17 @@ override_dh_auto_install:
install -m 755 -p -D scripts/dmemchk.sh $(SBINDIR) install -m 755 -p -D scripts/dmemchk.sh $(SBINDIR)
# Process monitor config files # Process monitor config files
install -m 755 -d $(PMONDIR_1) install -m 755 -d $(PMONDIR)
install -m 644 -p -D scripts/mtcClient.conf $(PMONDIR_1)/mtcClient.conf install -m 644 -p -D scripts/mtcClient.conf $(PMONDIR)/mtcClient.conf
install -m 644 -p -D scripts/hbsClient.conf $(PMONDIR_1)/hbsClient.conf install -m 644 -p -D scripts/hbsClient.conf $(PMONDIR)/hbsClient.conf
install -m 644 -p -D pmon/scripts/acpid.conf $(PMONDIR_1)/acpid.conf install -m 644 -p -D pmon/scripts/acpid.conf $(PMONDIR)/acpid.conf
install -m 644 -p -D pmon/scripts/sshd.conf $(PMONDIR_1)/sshd.conf install -m 644 -p -D pmon/scripts/sshd.conf $(PMONDIR)/sshd.conf
install -m 644 -p -D pmon/scripts/syslog-ng.conf $(PMONDIR_1)/syslog-ng.conf install -m 644 -p -D pmon/scripts/syslog-ng.conf $(PMONDIR)/syslog-ng.conf
install -m 644 -p -D pmon/scripts/sssd.conf $(PMONDIR_1)/sssd.conf install -m 644 -p -D pmon/scripts/sssd.conf $(PMONDIR)/sssd.conf
install -m 644 -p -D fsmon/scripts/fsmon.conf $(PMONDIR_1)/fsmon.conf install -m 644 -p -D fsmon/scripts/fsmon.conf $(PMONDIR)/fsmon.conf
install -m 644 -p -D scripts/mtclogd.conf $(PMONDIR_1)/mtclogd.conf install -m 644 -p -D scripts/mtclogd.conf $(PMONDIR)/mtclogd.conf
install -m 644 -p -D alarm/scripts/mtcalarm.pmon.conf $(PMONDIR_1)/mtcalarm.conf install -m 644 -p -D alarm/scripts/mtcalarm.pmon.conf $(PMONDIR)/mtcalarm.conf
install -m 644 -p -D lmon/scripts/lmon.pmon.conf $(PMONDIR_1)/lmon.conf install -m 644 -p -D lmon/scripts/lmon.pmon.conf $(PMONDIR)/lmon.conf
# Process monitor config files - temporary duplicate of pmon.d files
install -m 755 -d $(PMONDIR_2)
install -m 644 -p -D scripts/mtcClient.conf $(PMONDIR_2)/mtcClient.conf
install -m 644 -p -D scripts/hbsClient.conf $(PMONDIR_2)/hbsClient.conf
install -m 644 -p -D pmon/scripts/acpid.conf $(PMONDIR_2)/acpid.conf
install -m 644 -p -D pmon/scripts/sshd.conf $(PMONDIR_2)/sshd.conf
install -m 644 -p -D pmon/scripts/syslog-ng.conf $(PMONDIR_2)/syslog-ng.conf
install -m 644 -p -D pmon/scripts/sssd.conf $(PMONDIR_2)/sssd.conf
install -m 644 -p -D fsmon/scripts/fsmon.conf $(PMONDIR_2)/fsmon.conf
install -m 644 -p -D scripts/mtclogd.conf $(PMONDIR_2)/mtclogd.conf
install -m 644 -p -D alarm/scripts/mtcalarm.pmon.conf $(PMONDIR_2)/mtcalarm.conf
install -m 644 -p -D lmon/scripts/lmon.pmon.conf $(PMONDIR_2)/lmon.conf
# Log rotation # Log rotation
install -m 755 -d $(LOGDIR) install -m 755 -d $(LOGDIR)