diff options
author | Joel Stanley <joel@jms.id.au> | 2019-11-05 03:55:16 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-11-05 15:22:22 +0300 |
commit | 5f2105b1fcdf11e180897502de2fdc7c01ed6452 (patch) | |
tree | 03d7fd87ab06c88e4af9f07f2686c160621b075e | |
parent | df41e195d360f065984ff783721655c8166b0e78 (diff) | |
download | openbmc-5f2105b1fcdf11e180897502de2fdc7c01ed6452.tar.xz |
openbmc: Add systemd service for croserver
The upstream application does not ship a systemd service file so we
include it in meta-openpower.
The service does not have an 'install' section as it should be started
on demand by the cronus user. This may change in the future if OpenBMC
gains the ability to put itself in a debug state, where starting the
croserver will be part of that process.
(From meta-openpower rev: c6c86e4602e7d8734e771ee4bf2fb1049acbfb75)
Change-Id: I088ae4acfb7a8f039fd9342ba2314255ec7987f1
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r-- | meta-openpower/recipes-bsp/ecmd/croserver_git.bb | 7 | ||||
-rw-r--r-- | meta-openpower/recipes-bsp/ecmd/files/croserver.service | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/meta-openpower/recipes-bsp/ecmd/croserver_git.bb b/meta-openpower/recipes-bsp/ecmd/croserver_git.bb index a788e61642..01005f8fa0 100644 --- a/meta-openpower/recipes-bsp/ecmd/croserver_git.bb +++ b/meta-openpower/recipes-bsp/ecmd/croserver_git.bb @@ -7,6 +7,8 @@ SRC_URI = "git://github.com/open-power/eCMD.git" SRCREV = "6c0348b12c95b3bd6e8d8003f9ff743d25400ae2" DEPENDS += "python-native zlib" +SRC_URI += "file://croserver.service" + S = "${WORKDIR}/git" # Add the hash style option here to Work around this warning: @@ -26,4 +28,9 @@ do_compile() { do_install() { install -d ${D}${bindir} install -m 0755 out_obj/lib/server1p ${D}${bindir}/croserver + + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/croserver.service ${D}${systemd_system_unitdir}/ } + +FILES_${PN} += "${systemd_system_unitdir}/croserver.service" diff --git a/meta-openpower/recipes-bsp/ecmd/files/croserver.service b/meta-openpower/recipes-bsp/ecmd/files/croserver.service new file mode 100644 index 0000000000..38d1fd2ffd --- /dev/null +++ b/meta-openpower/recipes-bsp/ecmd/files/croserver.service @@ -0,0 +1,12 @@ +[Unit] +Description=Cronus Server +Documentation=https://github.com/open-power/eCMD/ +After=network.service + +[Service] +Type=simple +ExecStart=/usr/bin/croserver +Restart=on-failure +ProtectHome=yes +ProtectSystem=full +RestrictAddressFamilies=AF_UNIX |