Adds the ability to modify 'rdc' options
Modifying the /opt/rocm/etc/rdc file modifies RDC launch options. If the file doesn't exist, the service should still launch (though a new file should likely be included with the next released package of 'rdc'. Change-Id: I1a1891e9c5c3e6048754eb555779a97a170754c0
Este commit está contenido en:
cometido por
Galantsev, Dmitrii
padre
cb87eeeae7
commit
de3cb36ce0
@@ -72,8 +72,10 @@ set(SERVER_SRC_LIST
|
||||
message("SERVER_SRC_LIST=${SERVER_SRC_LIST}")
|
||||
|
||||
set(SERVER_DAEMON_EXE "rdcd")
|
||||
configure_file("rdc.service.in" "${PROJECT_BINARY_DIR}/rdc.service" @ONLY)
|
||||
set(SERVICE_FILE_NAME "rdc.service")
|
||||
configure_file("rdc.service.in" "${PROJECT_BINARY_DIR}/${SERVICE_FILE_NAME}" @ONLY)
|
||||
set(SERVER_CONFIG_FILE "rdc_options")
|
||||
configure_file("${SERVER_CONFIG_FILE}" "${PROJECT_BINARY_DIR}/${SERVER_CONFIG_FILE}" COPYONLY)
|
||||
|
||||
link_directories(${SMI_LIB_DIR})
|
||||
|
||||
@@ -94,6 +96,9 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${SERVER_DAEMON_EXE}
|
||||
install(FILES ${PROJECT_BINARY_DIR}/${SERVICE_FILE_NAME}
|
||||
DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/${RDC}
|
||||
COMPONENT ${SERVER_COMPONENT})
|
||||
install(FILES ${PROJECT_BINARY_DIR}/${SERVER_CONFIG_FILE}
|
||||
DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}
|
||||
COMPONENT ${SERVER_COMPONENT})
|
||||
|
||||
message("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&")
|
||||
message(" Finished Cmake Server ")
|
||||
|
||||
@@ -13,6 +13,7 @@ After=network.target
|
||||
#Requires=
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/@CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_SYSCONFDIR@/rdc_options
|
||||
User=rdc
|
||||
Group=rdc
|
||||
|
||||
@@ -25,7 +26,7 @@ AmbientCapabilities=CAP_DAC_OVERRIDE
|
||||
# ExecStartPre=
|
||||
# update-alternative has been run for rdcd and
|
||||
# soft link will be available in usr/bin
|
||||
ExecStart=rdcd
|
||||
ExecStart=rdcd $RDC_OPTS
|
||||
|
||||
# If we need to start anything after rdcd use this
|
||||
# ExecStartPost=
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# Append 'rdc' daemon parameters here
|
||||
RDC_OPTS=""
|
||||
#RDC_OPTS="-p 50051 -u -d"
|
||||
Referencia en una nueva incidencia
Block a user