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
相關文章
相關標籤/搜索