cenos7配置开机启动不生效

如题,请指导。

在/ect/rc.local文件中添加了如下代码:

PATH=$PATH:/usr/bin/

user=wking

seafile_dir=/home/wking/myCloud
script_path=${seafile_dir}/seafile-server-latest

sudo -u ${user} ${script_path}/seafile.sh start > /tmp/seafile.init.log 2>&1
sudo -u ${user} ${script_path}/seahub.sh start > /tmp/seahub.init.log 2>&1