mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
opticsmon: zpcimon: Rename opticsmon to zpcimon
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>
This commit is contained in:
committed by
Jan Höppner
parent
e7bc4a5d31
commit
e8550a4f8d
+4
-1
@@ -4,7 +4,7 @@ SYSTEM_UNITS = ttyrun-getty@.service iucvtty-login@.service \
|
||||
cpacfstatsd.service cpuplugd.service \
|
||||
dumpconf.service cpi.service \
|
||||
mon_fsstatd.service mon_procd.service \
|
||||
opticsmon.service
|
||||
zpcimon.service
|
||||
|
||||
all:
|
||||
|
||||
@@ -19,6 +19,9 @@ install: system_units
|
||||
$(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
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Systemd unit for mon_fsstatd (monitor z/VM guest file systems)
|
||||
# Systemd unit for zpcimon PCI NIC optical module monitoring
|
||||
#
|
||||
# Copyright IBM Corp. 2024
|
||||
#
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
[Unit]
|
||||
Description=Monitor health of directly attached PCI NIC optical modules
|
||||
# Documentation=man:opticsmon
|
||||
# Documentation=man:zpcimon
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
ExecStart=@usrsbin_path@/opticsmon --send-report --monitor --interval 86400
|
||||
ExecStart=@usrsbin_path@/zpcimon --send-report --monitor --interval 86400
|
||||
KillMode=control-group
|
||||
|
||||
[Install]
|
||||
Reference in New Issue
Block a user