diff options
author | Mikhail Gusarov <dottedmag@dottedmag.net> | 2014-03-28 15:51:16 +0100 |
---|---|---|
committer | Mikhail Gusarov <dottedmag@dottedmag.net> | 2014-03-29 10:36:57 +0100 |
commit | 18c0d55ea780036564e1ae642c9af1d02995cb08 (patch) | |
tree | 974361fdfeab780de484565f2ec0942ca7c87cb3 /CMakeLists.txt | |
parent | 16372c22a3c79e851e64be14f792d6867f2e2054 (diff) | |
download | rspamd-18c0d55ea780036564e1ae642c9af1d02995cb08.tar.gz rspamd-18c0d55ea780036564e1ae642c9af1d02995cb08.zip |
Add systemd unit
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 211bf9579..b100f1525 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,6 +91,10 @@ IF(NOT INCLUDEDIR) SET(INCLUDEDIR include/rspamd) ENDIF(NOT INCLUDEDIR) +IF(NOT SYSTEMDDIR) + SET(SYSTEMDDIR ${CMAKE_INSTALL_PREFIX}/lib/systemd/system) +ENDIF(NOT SYSTEMDDIR) + ############################# INCLUDE SECTION ############################################# INCLUDE(CheckIncludeFiles) @@ -1015,6 +1019,11 @@ FOREACH(LUA_CONF ${LUA_CONFIGS}) INSTALL(FILES "conf/lua/${LUA_CONF}" DESTINATION ${CONFDIR}/lua/${_rp}) ENDFOREACH(LUA_CONF) +# systemd unit + +INSTALL(FILES "rspamd.service" DESTINATION ${SYSTEMDDIR}) +INSTALL(FILES "rspamd.socket" DESTINATION ${SYSTEMDDIR}) + # Manual pages INSTALL(FILES "doc/rspamd.8" DESTINATION ${MANDIR}/man8) INSTALL(FILES "doc/rspamc.1" DESTINATION ${MANDIR}/man1) |