summaryrefslogtreecommitdiff
path: root/config/bmcweb.service.in
diff options
context:
space:
mode:
authorNan Zhou <nanzhoumails@gmail.com>2022-10-12 23:29:34 +0300
committerNan Zhou <nanzhoumails@gmail.com>2022-10-18 01:26:09 +0300
commit307386e8e5a18ec24955fc32bee556409a831a83 (patch)
tree4fc1e3675db68684535eacd4bd75d800f402087f /config/bmcweb.service.in
parentbf7e67e7210df3db013df5fe4c232737fe1eb10b (diff)
downloadbmcweb-307386e8e5a18ec24955fc32bee556409a831a83.tar.xz
move config to a subdir
This pattern is used in other places, e.g., https://github.com/openbmc/phosphor-logging In this way, we can cleanly add the bmcweb_config.h into include directory. Otherwise, any subdir we have in this project will need to include the root. Tested: it builds. Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: I882e51f3acb256a881c9474f6e4d4e19fea4a413
Diffstat (limited to 'config/bmcweb.service.in')
-rw-r--r--config/bmcweb.service.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/bmcweb.service.in b/config/bmcweb.service.in
new file mode 100644
index 0000000000..a0b6777caf
--- /dev/null
+++ b/config/bmcweb.service.in
@@ -0,0 +1,14 @@
+[Unit]
+Description=Start bmcweb server
+
+Wants=network.target
+After=network.target
+
+[Service]
+ExecReload=kill -s HUP $MAINPID
+ExecStart=@MESON_INSTALL_PREFIX@/bin/bmcweb
+Type=simple
+WorkingDirectory=/home/root
+
+[Install]
+WantedBy=network.target