diff options
author | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2020-04-20 09:58:25 +0300 |
---|---|---|
committer | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2020-04-20 10:40:52 +0300 |
commit | d2f5e82f0043d9decdbde61e201dbce482e48205 (patch) | |
tree | efb22537285e14d80a1d421416b23e4c21b26c46 /support-files | |
parent | 27d9986c1b39dcb061dff9f5ade790b0a56bf168 (diff) | |
download | mariadb-git-d2f5e82f0043d9decdbde61e201dbce482e48205.tar.gz |
Ship mariadb.service and mysql[d].service symlinks
Create symlinks during configure time and install them. This is
necessary as Alias support from systemd service file was dropped with:
6af0bd69074725c8d8b10f07ed4ccc013d010322
* Also ignore the generated symlinks in gitignore
Diffstat (limited to 'support-files')
-rw-r--r-- | support-files/CMakeLists.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/support-files/CMakeLists.txt b/support-files/CMakeLists.txt index 80b6ca386df..001b91a4b0c 100644 --- a/support-files/CMakeLists.txt +++ b/support-files/CMakeLists.txt @@ -120,8 +120,15 @@ IF(UNIX) IF(HAVE_SYSTEMD) CONFIGURE_FILE(mariadb.service.in ${CMAKE_CURRENT_BINARY_DIR}/mariadb.service @ONLY) + EXECUTE_PROCESS( + COMMAND ${CMAKE_COMMAND} -E create_symlink ./mariadb.service mysql.service + COMMAND ${CMAKE_COMMAND} -E create_symlink ./mariadb.service mysqld.service + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) + INSTALL(FILES use_galera_new_cluster.conf ${CMAKE_CURRENT_BINARY_DIR}/mariadb.service + ${CMAKE_CURRENT_BINARY_DIR}/mysql.service + ${CMAKE_CURRENT_BINARY_DIR}/mysqld.service DESTINATION ${inst_location}/systemd COMPONENT SupportFiles) # @ in directory name broken between CMake version 2.8.12.2 and 3.3 @@ -134,7 +141,10 @@ IF(UNIX) ENDIF() IF(INSTALL_SYSTEMD_UNITDIR) - INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/mariadb.service + INSTALL(FILES + ${CMAKE_CURRENT_BINARY_DIR}/mariadb.service + ${CMAKE_CURRENT_BINARY_DIR}/mysql.service + ${CMAKE_CURRENT_BINARY_DIR}/mysqld.service DESTINATION ${INSTALL_SYSTEMD_UNITDIR} COMPONENT Server) # http://public.kitware.com/Bug/view.php?id=14782 |