DATAPLATFORM_HOME=xxx
exist=sed -n '/luo-watchdog/'p /etc/rc.d/rc.local
if [ -n “$exist” ]; then
echo “clear the history command”
su - root -c “sed -i ‘/luo-watchdog.sh/d’ /etc/rc.d/rc.local”
fi
command="su - $user -c “sh $DATAPLATFORM_HOME/bin/lib/luo-watchdog.sh &” "