Merge "Revert "Run sysinv-api as sysinv user and normal groups""

This commit is contained in:
Zuul 2019-10-22 14:28:51 +00:00 committed by Gerrit Code Review
commit 58f05e8beb
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ sysinv_api_start () {
fi
# switch to non-root user before starting service
su ${OCF_RESKEY_user} -s /bin/sh -c "${OCF_RESKEY_binary} --config-file=${OCF_RESKEY_config} ${RUN_OPT_DEBUG}"' >> /dev/null 2>&1 & echo $!' > $OCF_RESKEY_pid
su ${OCF_RESKEY_user} -g root -s /bin/sh -c "${OCF_RESKEY_binary} --config-file=${OCF_RESKEY_config} ${RUN_OPT_DEBUG}"' >> /dev/null 2>&1 & echo $!' > $OCF_RESKEY_pid
rc=$?
if [ ${rc} -ne ${OCF_SUCCESS} ] ; then
ocf_log err "${proc} failed ${mydaemon} daemon (rc=$rc)"