From 307386e8e5a18ec24955fc32bee556409a831a83 Mon Sep 17 00:00:00 2001 From: Nan Zhou Date: Wed, 12 Oct 2022 20:29:34 +0000 Subject: 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 Change-Id: I882e51f3acb256a881c9474f6e4d4e19fea4a413 --- config/bmcweb.service.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 config/bmcweb.service.in (limited to 'config/bmcweb.service.in') 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 -- cgit v1.2.3