/etc/rc.d/rc.local 用于用户自定义开机启动程序,可以往里写开机要执行的命令或脚本,线上的配置如下:
[root@localhost ~]$ cat /etc/rc.d/rc.local
/data/init/restart_game.sh
touch /var/lock/subsys/local
ulimit -SHn
ulimit -u
/data/init/iptables.sh
rsync --daemon --config=/etc/rsyncd.conf
/usr/local/mysql/share/mysql/mysql.server start