Add Systemd unit files for skeleton applications

Preparing to start these with systemd.

Change-Id: I39a99242cee3e9e17e51356521d29bab5ad7d399
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/common/recipes-phosphor/obmc-phosphor-chassis/obmc-watchdog/obmc-start-watchdog@.service b/common/recipes-phosphor/obmc-phosphor-chassis/obmc-watchdog/obmc-start-watchdog@.service
new file mode 100644
index 0000000..7178d93
--- /dev/null
+++ b/common/recipes-phosphor/obmc-phosphor-chassis/obmc-watchdog/obmc-start-watchdog@.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Start Watchdog%i
+Wants=obmc-host-started@%i.target
+After=obmc-host-started@%i.target
+Wants=mapper-wait@-org-openbmc-watchdog-host%i.service
+After=mapper-wait@-org-openbmc-watchdog-host%i.service
+Conflicts=obmc-chassis-stop@%i.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart={sbindir}/mapper call /org/openbmc/watchdog/host%i org.openbmc.Watchdog set i 30000
+ExecStart={sbindir}/mapper call /org/openbmc/watchdog/host%i org.openbmc.Watchdog start
+
+[Install]
+WantedBy=obmc-chassis-start@%i.target
diff --git a/common/recipes-phosphor/obmc-phosphor-chassis/obmc-watchdog/obmc-stop-watchdog@.service b/common/recipes-phosphor/obmc-phosphor-chassis/obmc-watchdog/obmc-stop-watchdog@.service
new file mode 100644
index 0000000..2b086cf
--- /dev/null
+++ b/common/recipes-phosphor/obmc-phosphor-chassis/obmc-watchdog/obmc-stop-watchdog@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Stop Watchdog%i
+Wants=mapper-wait@-org-openbmc-watchdog-host%i.service
+After=mapper-wait@-org-openbmc-watchdog-host%i.service
+Conflicts=obmc-chassis-start@%i.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart={sbindir}/mapper call /org/openbmc/watchdog/host%i org.openbmc.Watchdog stop
+
+[Install]
+WantedBy=obmc-chassis-stop@%i.target
diff --git a/common/recipes-phosphor/obmc-phosphor-chassis/obmc-watchdog/org.openbmc.watchdog.Host@.service b/common/recipes-phosphor/obmc-phosphor-chassis/obmc-watchdog/org.openbmc.watchdog.Host@.service
new file mode 100644
index 0000000..2429c64
--- /dev/null
+++ b/common/recipes-phosphor/obmc-phosphor-chassis/obmc-watchdog/org.openbmc.watchdog.Host@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Phosphor Watchdog%i
+
+[Service]
+Restart=always
+ExecStart={sbindir}/host_watchdog.exe
+Type=dbus
+BusName={BUSNAME}
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}