SVN server Linux Boot auto-start code

Source: Internet
Author: User
Tags svn




  ~ 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.