mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
The opticsmon tool started out as a tool for monitoring the health of optical modules in directly attached PCI NICs. In the future however it will also monitor the health of other PCI devices. In particular in a first step it will monitor the health of directly attached NVMe devices. To reflect this broadening of its scope rename opticsmon to zpcimon. Add zpcimon.service and install it both under the new name and symlinked as opticsmon.service for backwards compatibility. Since users are expected to mostly just enable the service this keeps old instructions just working. Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
include ../common.mak
|
|
|
|
SYSTEM_UNITS = ttyrun-getty@.service iucvtty-login@.service \
|
|
cpacfstatsd.service cpuplugd.service \
|
|
dumpconf.service cpi.service \
|
|
mon_fsstatd.service mon_procd.service \
|
|
zpcimon.service
|
|
|
|
all:
|
|
|
|
system_units: $(SYSTEM_UNITS)
|
|
|
|
check:
|
|
|
|
ifneq (${SYSTEMDSYSTEMUNITDIR},)
|
|
|
|
install: system_units
|
|
for unit in $(SYSTEM_UNITS); do \
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) \
|
|
-m 644 $$unit $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR) ; \
|
|
done
|
|
# Make the legacy opticsmon.service a link to zpcimon.service
|
|
ln -sf zpcimon.service \
|
|
$(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)/opticsmon.service
|
|
|
|
else
|
|
|
|
install:
|
|
|
|
endif
|
|
|
|
clean:
|
|
rm -f $(SYSTEM_UNITS)
|
|
|
|
%: %.in
|
|
real_bin_dir=$(BINDIR); \
|
|
real_usrbin_dir=$(USRBINDIR); \
|
|
real_usrsbin_dir=$(USRSBINDIR); \
|
|
real_toolslib_dir=$(TOOLS_LIBDIR); \
|
|
real_sysconf_dir=$(SYSCONFDIR); \
|
|
$(SED) -e "s#@bin_path@#$$real_bin_dir#g" \
|
|
-e "s#@usrbin_path@#$$real_usrbin_dir#g" \
|
|
-e "s#@usrsbin_path@#$$real_usrsbin_dir#g" \
|
|
-e "s#@toolslib_path@#$$real_toolslib_dir#g" \
|
|
-e "s#@sysconf_path@#$$real_sysconf_dir#g" \
|
|
-e 's#@S390_TOOLS_RELEASE@#$(S390_TOOLS_RELEASE)#g' \
|
|
< $< > $@
|
|
|
|
.PHONY: all check install clean system_units
|