psu: Add phosphor-psu-monitor.service
Creating a new service file for the phosphor-psu-monitor application
created by the phosphor-power-supply subdirectory tree.
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: I2769f6ac0012fe8849ef266930d8c736a88417ce
diff --git a/meson.build b/meson.build
index d99271d..8740f40 100644
--- a/meson.build
+++ b/meson.build
@@ -29,7 +29,8 @@
services = [
'power-supply-monitor@.service',
'pseq-monitor-pgood.service',
- 'pseq-monitor.service'
+ 'pseq-monitor.service',
+ 'phosphor-psu-monitor.service'
]
foreach service : services
diff --git a/services/phosphor-psu-monitor.service b/services/phosphor-psu-monitor.service
new file mode 100644
index 0000000..a973a70
--- /dev/null
+++ b/services/phosphor-psu-monitor.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Phosphor Power Supply Monitor
+Wants=obmc-mapper.target
+After=obmc-mapper.target
+Wants=mapper-wait@-org-openbmc-control-power0.service
+After=mapper-wait@-org-openbmc-control-power0.service
+
+[Service]
+Restart=on-failure
+ExecStart=phosphor-psu-monitor
+
+[Install]
+WantedBy=multi-user.target