diff options
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/CMakeLists.txt | 2 | ||||
-rw-r--r-- | systemd/cynara-agent.socket.in | 15 | ||||
-rw-r--r-- | systemd/cynara.service | 1 | ||||
l--------- | systemd/sockets.target.wants/cynara-agent.socket | 1 |
4 files changed, 19 insertions, 0 deletions
diff --git a/systemd/CMakeLists.txt b/systemd/CMakeLists.txt index 3fde22f..9ea1f7e 100644 --- a/systemd/CMakeLists.txt +++ b/systemd/CMakeLists.txt @@ -21,12 +21,14 @@ set(SYSTEMD_UNIT_DIR "${CMAKE_INSTALL_FULL_LIBDIR}/systemd/system" CONFIGURE_FILE(cynara-admin.socket.in cynara-admin.socket @ONLY) CONFIGURE_FILE(cynara-check.socket.in cynara-check.socket @ONLY) +CONFIGURE_FILE(cynara-agent.socket.in cynara-agent.socket @ONLY) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cynara.service ${CMAKE_CURRENT_SOURCE_DIR}/cynara.target ${CMAKE_CURRENT_BINARY_DIR}/cynara-admin.socket ${CMAKE_CURRENT_BINARY_DIR}/cynara-check.socket + ${CMAKE_CURRENT_BINARY_DIR}/cynara-agent.socket DESTINATION ${SYSTEMD_UNIT_DIR} ) diff --git a/systemd/cynara-agent.socket.in b/systemd/cynara-agent.socket.in new file mode 100644 index 0000000..12dd064 --- /dev/null +++ b/systemd/cynara-agent.socket.in @@ -0,0 +1,15 @@ +[Socket] +FileDescriptorName=agent +ListenStream=@DEFAULT_SOCKET_DIR@/cynara.agent +SocketMode=0600 +SmackLabelIPIn=@ +SmackLabelIPOut=@ + +Service=cynara.service + +[Unit] +Wants=cynara.target +Before=cynara.target + +[Install] +WantedBy=sockets.target diff --git a/systemd/cynara.service b/systemd/cynara.service index 9cacce6..b7bfd5a 100644 --- a/systemd/cynara.service +++ b/systemd/cynara.service @@ -14,6 +14,7 @@ Restart=always Sockets=cynara-admin.socket Sockets=cynara-check.socket +Sockets=cynara-agent.socket SmackProcessLabel=System #UMask=0000 diff --git a/systemd/sockets.target.wants/cynara-agent.socket b/systemd/sockets.target.wants/cynara-agent.socket new file mode 120000 index 0000000..22b37dd --- /dev/null +++ b/systemd/sockets.target.wants/cynara-agent.socket @@ -0,0 +1 @@ +../cynara-agent.socket
\ No newline at end of file |