summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
Diffstat (limited to 'daemon')
-rw-r--r--daemon/CMakeLists.txt4
-rw-r--r--daemon/hwd.service9
2 files changed, 13 insertions, 0 deletions
diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt
index 4a310ec..7fe2fd0 100644
--- a/daemon/CMakeLists.txt
+++ b/daemon/CMakeLists.txt
@@ -16,3 +16,7 @@ set_target_properties(${PROJECT_NAME}
install(TARGETS ${PROJECT_NAME}
RUNTIME
)
+configure_file(hwd.service hwd.service)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/hwd.service
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system
+ )
diff --git a/daemon/hwd.service b/daemon/hwd.service
new file mode 100644
index 0000000..a48c5a4
--- /dev/null
+++ b/daemon/hwd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Daemon for Educational Hardware Simulator
+After=network.target
+
+[Service]
+ExecStart=${CMAKE_INSTALL_FULL_BINDIR}/hwd
+
+[Install]
+WantedBy=multi-user.target