fledge start/stop as service without sudo
@@ -67,11 +67,19 @@ get_pid() {
}
fledge_start() {
+ if [ "$IS_RHEL" = "" ]; then
sudo -u ${FLEDGE_USER} "${FLEDGE_ROOT}/bin/fledge" start > /dev/null
+ else
+ "${FLEDGE_ROOT}/bin/fledge" start > /dev/null
+ fi
}
fledge_stop() {
+ if [ "$IS_RHEL" = "" ]; then
sudo -u ${FLEDGE_USER} "${FLEDGE_ROOT}/bin/fledge" stop > /dev/null
+ else
+ "${FLEDGE_ROOT}/bin/fledge" stop > /dev/null
+ fi
}
case "$1" in
