Add systemd service file
Add a systemd service file for eStoraged, so that it starts up
automatically. Now that eStoraged can dynamically look for config
objects and doesn't need a hard-coded device filename, it makes sense to
have a service file in this repo now.
Tested:
Made some corresponding changes to the eStoraged recipe, then verified
that eStoraged automatically starts up on a BMC when included in the
image.
Signed-off-by: John Wedig <johnwedig@google.com>
Change-Id: Id701bde62c2ca4206b980660340eec678e062ede
diff --git a/service_files/xyz.openbmc_project.eStoraged.service.in b/service_files/xyz.openbmc_project.eStoraged.service.in
new file mode 100644
index 0000000..7748bb2
--- /dev/null
+++ b/service_files/xyz.openbmc_project.eStoraged.service.in
@@ -0,0 +1,12 @@
+[Unit]
+Description=Storage management daemon for an encrypted storage device
+Requires=xyz.openbmc_project.EntityManager.service
+After=xyz.openbmc_project.EntityManager.service
+
+[Service]
+Type=simple
+Restart=always
+ExecStart=@BINDIR@/eStoraged
+
+[Install]
+WantedBy=multi-user.target