Loading etc/CMakeLists.txt +5 −1 Original line number Diff line number Diff line Loading @@ -22,10 +22,14 @@ # SPDX-License-Identifier: GPL-3.0-or-later # ################################################################################ add_subdirectory(deploy_scripts) configure_file(scord.conf.in scord.conf) configure_file(scord-ctl.conf.in scord-ctl.conf @ONLY) # install the configuration file to sysconfdir (normally /etc) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/scord.conf scord-ctl.conf install(FILES ${CMAKE_CURRENT_BINARY_DIR}/scord.conf ${CMAKE_CURRENT_BINARY_DIR}/scord-ctl.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR} ) Loading etc/deploy_scripts/CMakeLists.txt 0 → 100644 +35 −0 Original line number Diff line number Diff line ################################################################################ # Copyright 2021-2023, Barcelona Supercomputing Center (BSC), Spain # # # # This software was partially supported by the EuroHPC-funded project ADMIRE # # (Project ID: 956748, https://www.admire-eurohpc.eu). # # # # This file is part of scord. # # # # scord is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # # the Free Software Foundation, either version 3 of the License, or # # (at your option) any later version. # # # # scord is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # # along with scord. If not, see <https://www.gnu.org/licenses/>. # # # # SPDX-License-Identifier: GPL-3.0-or-later # ################################################################################ list(APPEND ADHOC_SCRIPTS "${CMAKE_CURRENT_SOURCE_DIR}/gekkofs.sh") # install adhoc scripts to `<sysconfdir>/scord` (normally /etc/scord) install( FILES ${ADHOC_SCRIPTS} DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/${PROJECT_NAME} PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ ) etc/deploy_scripts/gekkofs.sh 0 → 100644 +3 −0 Original line number Diff line number Diff line #!/usr/bin/env bash exit 0 etc/scord-ctl.conf→etc/scord-ctl.conf.in +5 −2 Original line number Diff line number Diff line Loading @@ -24,14 +24,17 @@ config: # `working_directory` and automatically removed after the adhoc # instance has been shut down. # * ADHOC_ID: - A unique ID for the adhoc instance. command: script.sh start command: @CMAKE_INSTALL_FULL_SYSCONFDIR@/@PROJECT_NAME@/gekkofs.sh start --hosts {ADHOC_NODES} --workdir {ADHOC_DIRECTORY} --datadir {ADHOC_DIRECTORY}/data --mountdir {ADHOC_DIRECTORY}/mnt shutdown: environment: command: script.sh stop --workdir {ADHOC_DIRECTORY} command: @CMAKE_INSTALL_FULL_SYSCONFDIR@/@PROJECT_NAME@/gekkofs.sh stop --workdir {ADHOC_DIRECTORY} # default storage tiers made available to applications Loading Loading
etc/CMakeLists.txt +5 −1 Original line number Diff line number Diff line Loading @@ -22,10 +22,14 @@ # SPDX-License-Identifier: GPL-3.0-or-later # ################################################################################ add_subdirectory(deploy_scripts) configure_file(scord.conf.in scord.conf) configure_file(scord-ctl.conf.in scord-ctl.conf @ONLY) # install the configuration file to sysconfdir (normally /etc) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/scord.conf scord-ctl.conf install(FILES ${CMAKE_CURRENT_BINARY_DIR}/scord.conf ${CMAKE_CURRENT_BINARY_DIR}/scord-ctl.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR} ) Loading
etc/deploy_scripts/CMakeLists.txt 0 → 100644 +35 −0 Original line number Diff line number Diff line ################################################################################ # Copyright 2021-2023, Barcelona Supercomputing Center (BSC), Spain # # # # This software was partially supported by the EuroHPC-funded project ADMIRE # # (Project ID: 956748, https://www.admire-eurohpc.eu). # # # # This file is part of scord. # # # # scord is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # # the Free Software Foundation, either version 3 of the License, or # # (at your option) any later version. # # # # scord is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # # along with scord. If not, see <https://www.gnu.org/licenses/>. # # # # SPDX-License-Identifier: GPL-3.0-or-later # ################################################################################ list(APPEND ADHOC_SCRIPTS "${CMAKE_CURRENT_SOURCE_DIR}/gekkofs.sh") # install adhoc scripts to `<sysconfdir>/scord` (normally /etc/scord) install( FILES ${ADHOC_SCRIPTS} DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/${PROJECT_NAME} PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ )
etc/deploy_scripts/gekkofs.sh 0 → 100644 +3 −0 Original line number Diff line number Diff line #!/usr/bin/env bash exit 0
etc/scord-ctl.conf→etc/scord-ctl.conf.in +5 −2 Original line number Diff line number Diff line Loading @@ -24,14 +24,17 @@ config: # `working_directory` and automatically removed after the adhoc # instance has been shut down. # * ADHOC_ID: - A unique ID for the adhoc instance. command: script.sh start command: @CMAKE_INSTALL_FULL_SYSCONFDIR@/@PROJECT_NAME@/gekkofs.sh start --hosts {ADHOC_NODES} --workdir {ADHOC_DIRECTORY} --datadir {ADHOC_DIRECTORY}/data --mountdir {ADHOC_DIRECTORY}/mnt shutdown: environment: command: script.sh stop --workdir {ADHOC_DIRECTORY} command: @CMAKE_INSTALL_FULL_SYSCONFDIR@/@PROJECT_NAME@/gekkofs.sh stop --workdir {ADHOC_DIRECTORY} # default storage tiers made available to applications Loading