integ/filesystem/luks/debian/deb_folder/rules
Jagatguru Prasad Mishra e4e8866a43 Pmon monitoring of luks-fs-mgr service on controllers
luks-fs-mgr service is modified to create a pidfile which can be
tracked using pmon. Pmon passive monitoring on controllers is
enabled by adding a config file which tracks the pidfile and
tries to restart the service if it fails.

Test Plan:
PASS: build-pkgs -c -p luks-fs-mgr
PASS: build-image
PASS: AIO-SX verify if luks.conf is present at /usr/share/starlingx/pmon.d
PASS: pid file luks-fs-mgr.pid should be created at /var/run
PASS: pid file should be deleted after luks-fs-mgr service is stopped.

Story: 2010872
Task: 49249

Change-Id: I97ccb81c2f6fba6b7d0c1fc462d42fbce21595fa
Signed-off-by: Jagatguru Prasad Mishra <jagatguruprasad.mishra@windriver.com>
2023-12-14 13:28:42 +00:00

32 lines
865 B
Makefile

#!/usr/bin/make -f
# export DH_VERBOSE = 1
export ROOT = debian/tmp
export LOCAL_SBINDIR = $(ROOT)/usr/local/sbin
export UNITDIR = $(ROOT)/lib/systemd/system
export CONFIGDIR = $(ROOT)/etc/luks-fs-mgr.d
export PMONDIR = $(ROOT)/usr/share/starlingx/pmon.d
%:
dh $@
override_dh_auto_test:
echo
override_dh_auto_install:
install -m 755 -d ${LOCAL_SBINDIR}
install -m 700 -p -D encryption/luks-fs-mgr ${LOCAL_SBINDIR}/luks-fs-mgr
install -m 755 -d ${UNITDIR}
install -p -D -m 644 ./debian/luks-fs-mgr.service ${UNITDIR}/luks-fs-mgr.service
install -p -D -m 644 encryption/scripts/luks_config.json ${CONFIGDIR}/luks_config.json
# Process monitor config files
install -m 755 -d $(PMONDIR)
install -p -D -m 644 encryption/scripts/luks.conf ${PMONDIR}/luks.conf
override_dh_installsystemd:
dh_installsystemd --name luks-fs-mgr
override_dh_usrlocal:
echo