oceanbase的开机自启动

【 使用环境 】生产环境
【 OB or 其他组件 】Oceanbase
【 使用版本 】Oceanbase 4.2.0
【问题描述】oceanbase 开机启动失败
【复现路径】使用obd demo创建后 重启发现需要输入obd cluster start demo 启动后 将该语句加入开机服务脚本,提示未找到obd命令后 将env.sh的环境变量语句加入脚本后重启
【问题现象及影响】
显示服务状态后显示File “obd.py” line 46 in
File “posixpath.py” line 76 in join TypeError :expected str ,byte or os. PathLike object, not NoneType
[986869] failed toexecute script ‘obd’ due to unhandled exception!
【附件】
大家有尝试过类似的开机自启吗 有的话能分享一下自启流程吗

obd启动的时候,可能有些机器还没有完成启动,可能会造成启动失败

我之前提过一个类似的问题类似的问题,最后还是放弃了,目前还是手动启动的

[Unit]
Description=oceanbase database
After=network.target
[Service]
Type=forking
User=root
ExecStart=/root/.oceanbase-all-in-one/obd/usr/bin/obd cluster start obtest
ExecStop=/root/.oceanbase-all-in-one/obd/usr/bin/obd cluster stop obtest
ExecReload=/root/.oceanbase-all-in-one/obd/usr/bin/obd cluster restart obtest
LimitNOFILE=165535
LimitNPROC=165535
[Install]
WantedBy=multi-user.target

主要是要加
LimitNOFILE=165535
LimitNPROC=165535