Füge Unterstützung für systemd hinzu, indem die systemd-Entwicklungslibraries in CMakeLists.txt und Installationsskripten für OpenSUSE und Ubuntu 22 integriert werden. Aktualisiere die yourpart-daemon.service-Datei für eine verbesserte Service-Verwaltung und implementiere die Benachrichtigung an systemd, wenn der Dienst bereit ist.

This commit is contained in:
Torsten Schulz (local)
2025-08-31 23:49:16 +02:00
committed by Torsten (PC)
parent 91420b9973
commit 8ba4566d23
5 changed files with 24 additions and 1 deletions

View File

@@ -92,6 +92,10 @@ target_include_directories(yourpart-daemon PRIVATE
${LWS_INCLUDE_DIRS}
)
# Find systemd
find_package(PkgConfig REQUIRED)
pkg_check_modules(SYSTEMD REQUIRED libsystemd)
# Link libraries
target_link_libraries(yourpart-daemon PRIVATE
${PostgreSQL_LIBRARIES}
@@ -100,6 +104,7 @@ target_link_libraries(yourpart-daemon PRIVATE
${LIBPQXX_LIBRARIES}
${LWS_LIBRARIES}
nlohmann_json::nlohmann_json
${SYSTEMD_LIBRARIES}
)
# Installation rules