ARTEMIS-420 user switch when broker is service
This commit is contained in:
parent
edc514196b
commit
7864577fbc
|
@ -95,7 +95,11 @@ start() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
if [ -z "$ARTEMIS_USER" -o `id -un` = "$ARTEMIS_USER" ] ; then
|
||||
nohup ${ARTEMIS_INSTANCE}/bin/artemis run > /dev/null 2> /dev/null &
|
||||
else
|
||||
sudo -n -u ${ARTEMIS_USER} nohup ${ARTEMIS_INSTANCE}/bin/artemis run > /dev/null 2> /dev/null &
|
||||
fi
|
||||
|
||||
echo $! > "${PID_FILE}"
|
||||
|
||||
|
|
Loading…
Reference in New Issue