1、脚本中增加开机自启动(boot-up)选项
This commit is contained in:
@@ -134,7 +134,18 @@ elif [ "$1" = "stop" ]; then
|
||||
echo "$name kill ok !!!!!!!!!!!!!"
|
||||
else
|
||||
echo "$name is not start!!!!!!!!!!!"
|
||||
fi
|
||||
fi
|
||||
elif [ "$1" = "boot-up" ]; then
|
||||
#设置开机自启动
|
||||
if [ -z "$(cat /etc/rc.local|grep -E "^\s*$DATACONTROLLER_HOME/shell/startup.sh")" ]
|
||||
then
|
||||
echo "">> /etc/rc.local
|
||||
echo "########## datacontroller开机启动 ###########" >> /etc/rc.local
|
||||
echo $DATACONTROLLER_HOME"/shell/startup.sh" >> /etc/rc.local
|
||||
echo "Boot-up settings complete!"
|
||||
else
|
||||
echo "Boot-up has been set up without modification."
|
||||
fi
|
||||
elif [ "$1" = "restart" ] ; then
|
||||
getPid
|
||||
if [ -n "$proc_id" ]
|
||||
|
||||
Reference in New Issue
Block a user