Remove hard coded ROCm path in rdc.service

The executable rdcd was using an absolute path in rdc.service. Using update-alternatives gives the flexibility to invoke the binary from anywhere and no absolute path is required.

Change-Id: I2f3d6fcbf9dd854870cfc2e00532c504ce6cd6fc
This commit is contained in:
Ranjith Ramakrishnan
2024-03-13 10:50:05 -07:00
committed by Galantsev, Dmitrii
parent 662cc0f8b2
commit 0ca6d6fa59
6 changed files with 135 additions and 4 deletions
+3 -2
View File
@@ -23,8 +23,9 @@ AmbientCapabilities=CAP_DAC_OVERRIDE
# If we need to start anything before rdcd, use this
# ExecStartPre=
ExecStart=/@CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/rdcd
# update-alternative has been run for rdcd and
# soft link will be available in usr/bin
ExecStart=rdcd
# If we need to start anything after rdcd use this
# ExecStartPost=