~ ll /etc/rc.d/rc.local-rwxr-xr-x 1 root root 810 Oct 9 09:30 /etc/rc.d/rc.local ~ cat /etc/rc.d/rc.local#!/bin/bash# this FILE IS ADDED FOR COMPATIBILITY PURPOSES## It is highly advisable to create own systemd services or udev rules# to run scripts during boot instead of using this file.## in contrast to previous versions due to parallel execution during boot# this script will not be run after all other services.# # please note that you must run ' chmod +x /etc/rc.d/rc.local ' to ensure# that this script will be executed during boot.touch /var/lock/subsys/local#add_s by chunli, for autostart svnserve!while truedo sleep 1 ps -ef > /tmp/tmp_svnserve cat /tmp/tmp_svnserve | grep '/usr/bin/svnserve -d ' if [ $? -eq 0 ] then rm -rf /tmp/tmp_svnserve exit else /usr/bin/svnserve -d -r /home/svn/ fidone#add_e by chunli, for autostart svnserve! ~
This article from "Li Chunli" blog, reproduced please contact the author!
SVN server Linux Boot auto-start code