pseq: Add service file

Add service file for power control and power sequence monitoring
combined application. Change meson build files to support.

Signed-off-by: Jim Wright <jlwright@us.ibm.com>
Change-Id: I0c06b0b66c7d02145516564dc98123a4633498b3
diff --git a/meson.build b/meson.build
index a9d0183..8ec5d09 100644
--- a/meson.build
+++ b/meson.build
@@ -57,6 +57,7 @@
     ['regulators', 'phosphor-regulators-config.service'],
     ['regulators', 'phosphor-regulators-monitor-enable.service'],
     ['regulators', 'phosphor-regulators-monitor-disable.service'],
+    ['power-control', 'phosphor-power-control.service'],
 ]
 
 foreach service : services
@@ -130,7 +131,7 @@
 if get_option('sequencer-monitor')
     subdir('power-sequencer')
 endif
-if get_option('sequencer-monitor-ng')
+if get_option('power-control')
     subdir('phosphor-power-sequencer')
 endif
 if get_option('supply-monitor')
diff --git a/meson_options.txt b/meson_options.txt
index 10710b2..c989334 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -60,7 +60,7 @@
     description: 'Enable support for power sequencer control'
 )
 option(
-    'sequencer-monitor-ng', type: 'boolean',
+    'power-control', type: 'boolean',
     description: 'Enable support for power sequencer control utilizing JSON configuration and supporting multiple systems in a single build image'
 )
 option(
diff --git a/phosphor-power-sequencer/meson.build b/phosphor-power-sequencer/meson.build
index 19218ec..4f5bcf9 100644
--- a/phosphor-power-sequencer/meson.build
+++ b/phosphor-power-sequencer/meson.build
@@ -1,2 +1,6 @@
+install_subdir('config_files',
+    strip_directory: true,
+    install_dir: get_option('datadir')/'phosphor-power-sequencer')
+
 subdir('src')
 
diff --git a/services/phosphor-power-control.service b/services/phosphor-power-control.service
new file mode 100644
index 0000000..d58de9f
--- /dev/null
+++ b/services/phosphor-power-control.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Phosphor Power Control
+
+[Service]
+Restart=always
+ExecStart=/usr/bin/phosphor-power-control
+
+[Install]
+WantedBy=multi-user.target