summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2019-03-29 10:54:44 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-04-03 11:53:54 +0000
commitfb6a8e1e727a8ece5eb0350d3962dd3056a6f608 (patch)
treed9c6c523d87146325c980e2a39943894ef074d30
parent81739f4a0deeb0b4b81954091457aaf7e56a6442 (diff)
downloadobmc-ikvm-fb6a8e1e727a8ece5eb0350d3962dd3056a6f608.tar.gz
obmc-ikvm-fb6a8e1e727a8ece5eb0350d3962dd3056a6f608.zip
systemd: Add unit file
Add a unit file for starting obmc-ikvm with systemd. Change-Id: I85bc8c5d9682b48aedeb3670a61179267798d4f7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r--meson.build9
-rw-r--r--start-ipkvm.service10
2 files changed, 19 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 3fbefd7..76563a3 100644
--- a/meson.build
+++ b/meson.build
@@ -28,3 +28,12 @@ executable(
],
install: true
)
+
+configure_file(
+ input: 'start-ipkvm.service',
+ output: 'start-ipkvm.service',
+ copy: true,
+ install_dir:
+ dependency('systemd').get_pkgconfig_variable(
+ 'systemdsystemunitdir')
+)
diff --git a/start-ipkvm.service b/start-ipkvm.service
new file mode 100644
index 0000000..e0db0f3
--- /dev/null
+++ b/start-ipkvm.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=OpenBMC ipKVM daemon
+
+[Service]
+Restart=always
+ExecStartPre=/usr/bin/create_usbhid.sh
+ExecStart=/usr/bin/obmc-ikvm -v /dev/video0 -k /dev/hidg0 -p /dev/hidg1
+
+[Install]
+WantedBy=multi-user.target
OpenPOWER on IntegriCloud