From 3eedebe20e3b715308ba7b97d42c819fcb671bd3 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 26 Jan 2022 18:23:37 +0100 Subject: Renamed and fixed paths in systemd unit file --- daemon/CMakeLists.txt | 2 +- daemon/hwd.service | 9 --------- daemon/hwd.service.in | 9 +++++++++ 3 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 daemon/hwd.service create mode 100644 daemon/hwd.service.in (limited to 'daemon') diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt index 7fe2fd0..4a3f436 100644 --- a/daemon/CMakeLists.txt +++ b/daemon/CMakeLists.txt @@ -16,7 +16,7 @@ set_target_properties(${PROJECT_NAME} install(TARGETS ${PROJECT_NAME} RUNTIME ) -configure_file(hwd.service hwd.service) +configure_file(hwd.service.in 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 deleted file mode 100644 index a48c5a4..0000000 --- a/daemon/hwd.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Daemon for Educational Hardware Simulator -After=network.target - -[Service] -ExecStart=${CMAKE_INSTALL_FULL_BINDIR}/hwd - -[Install] -WantedBy=multi-user.target diff --git a/daemon/hwd.service.in b/daemon/hwd.service.in new file mode 100644 index 0000000..ae60536 --- /dev/null +++ b/daemon/hwd.service.in @@ -0,0 +1,9 @@ +[Unit] +Description=Daemon for Educational Hardware Simulator +After=network.target + +[Service] +ExecStart=${CMAKE_INSTALL_BINDIR}/hwd + +[Install] +WantedBy=multi-user.target -- cgit v1.1