/opt/etc/init.d/start_init_scripts.sh 内容如下,并
chmod +x /opt/etc/init.d/start_init_scripts.sh
To prevent lots of start_init_scripts.sh instances, we use a sleep command at the end of the script:
-
详情回复
/opt/etc/init.d/start_init_scripts.sh 内容如下,并
chmod +x /opt/etc/init.d/start_init_scripts.sh
To prevent lots of start_init_scripts.sh instances, we use a sleep command at the end of the script:
-------------------
#!/bin/sh
rm /opt/var/log/boot
if [ -d /opt/etc/init.d ]; then
for f in /opt/etc/init.d/S* ; do
#[ -x $f ] && $f start
$f start | tee -a /opt/var/log/boot
done
fi
sleep 365d