Add sd unit file for vcs-off.sh
Add systemd unit, which orders itself before powering on
Partially resolves openbmc/openbmc#647
Change-Id: Ibc3f3a928958b164c46056452c13f91c20b17277
Signed-off-by: Sergey Solomin <sergey.solomin@us.ibm.com>
diff --git a/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/vcs_off@.service b/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/vcs_off@.service
new file mode 100644
index 0000000..99b4508
--- /dev/null
+++ b/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/vcs_off@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Disable VCS before Witherspoon power on
+Wants=obmc-power-start-pre@%i.target
+Before=obmc-power-start-pre@%i.target
+Conflicts=obmc-chassis-stop@%i.target
+
+[Service]
+ExecStart={bindir}/vcs_off.sh
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=obmc-chassis-start@%i.target