RBMC: Create active-bmc-only.conf
This configuration file will be installed by bitbake as a drop-in to
enable a service to only start when the obmc-bmc-active.target target is
started.
For example:
/lib/systemd/system/phosphor-psu-monitor.service.d/active-bmc-only.conf
The 'DefaultDependencies=no' is required so that there aren't error
messages like:
```
obmc-bmc-active.target: Found dependency on phosphor-set-bmc-active-passive.service/start
obmc-bmc-active.target: Found dependency on obmc-bmc-active.target/start
obmc-bmc-active.target: Job phosphor-psu-monitor.service/start deleted to break ordering cycle starting with obmc-bmc-active.target/start
```
I'm open to any other ideas there.
Change-Id: I8aadb1ac3120693a96930679908c7aa07020616f
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/service_files/active-bmc-only.conf b/service_files/active-bmc-only.conf
new file mode 100755
index 0000000..deffd03
--- /dev/null
+++ b/service_files/active-bmc-only.conf
@@ -0,0 +1,7 @@
+[Unit]
+ConditionPathExists=/run/openbmc/active-bmc
+After=phosphor-set-bmc-active-passive.service
+PartOf=obmc-bmc-active.target
+
+# Break an ordering dependency
+DefaultDependencies=no