Linux 添加启动项 rc.local

rc.local

#!/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

猜你喜欢

转载自my.oschina.net/u/3136970/blog/1553463
今日推荐