crit-service: enable monitoring of critical services
The final commit in this series to officially enable the monitoring of
the critical services.
Tested:
- Built a full flash image with the needed recipe change to bring in the
new json file and bmc quiesce target. Verified that when a critical
service went into its final failure state, it was detected, error was
logged, dump was created, and BMC state correctly showed Quiesced.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Ia67fce32e1c002c7d3b78b2c83fa32c960c41a9c
diff --git a/data/meson.build b/data/meson.build
index bd6873e..2be4480 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -1,5 +1,6 @@
data = [
'phosphor-target-monitor-default.json',
+ 'phosphor-service-monitor-default.json',
]
foreach d : data
diff --git a/service_files/phosphor-systemd-target-monitor.service b/service_files/phosphor-systemd-target-monitor.service
index ffd980f..1a9fc06 100644
--- a/service_files/phosphor-systemd-target-monitor.service
+++ b/service_files/phosphor-systemd-target-monitor.service
@@ -4,7 +4,9 @@
[Service]
Restart=always
-ExecStart=/usr/bin/phosphor-systemd-target-monitor -f /etc/phosphor-systemd-target-monitor/phosphor-target-monitor-default.json
+ExecStart=/usr/bin/phosphor-systemd-target-monitor \
+ -f /etc/phosphor-systemd-target-monitor/phosphor-target-monitor-default.json \
+ -s /etc/phosphor-systemd-target-monitor/phosphor-service-monitor-default.json
[Install]
WantedBy=multi-user.target