Linux 添加启动项 rc.local

rc.localmysql

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

#开机启动mysql
#service mysql restart

#开机启动apach
#service apache2 restart

#开机启动gitblit
cd /opt/gitblit/ && ./gitblit.sh &

#开机启动SVN
svnserve -d -r /home/android/svn-dataBase &

exit 0
相关文章
相关标签/搜索