SUSELinuxsubversion server self-starting

Source: Internet
Author: User
Article Title: The SUSELinuxsubversion server is automatically started. Linux is a technology channel of the IT lab in China. Basic classification includes desktop applications, Linux system management, kernel research, embedded systems, and open-source systems. Follow these steps to set svnserve as a self-starting service.
 
1. Read the/etc/init. d/svnserve script and get inspiration from the following snippet to modify the settings in/etc/sysconfig/svnserve.
 
 
     
      ...SVNSERVE_BIN=/usr/bin/svnserve...SVNSERVE_CONFIG=/etc/sysconfig/svnserve.... $SVNSERVE_CONFIG...case "$1" instart)echo -n "Starting svnserve "## Start daemon with startproc(8). If this fails## the return value is set appropriately by startproc.startproc -u "$SVNSERVE_USERID" -g "$SVNSERVE_GROUPID" -e $SVNSERVE_BIN $SVNSERVE_OPTIONS...
     


 
2. Modify the following content in the/etc/sysconfig/svnserve File
 
##### Remove-R; otherwise, read-only is required;
 
##### Note that the repository path must be correctly spelled
 
SVNSERVE_OPTIONS = "-d-r/home/zhangrui/project/svnRepository/sft"
 
##### Set it as an existing user and user group, and I will set it as my usual logon user
 
SVNSERVE_USERID = "zhangrui"
 
SVNSERVE_GROUPID = "users"
 
3. Enable the svnserve Service (level3, 5) in YAST> system service)
 
Or run chkconfig-s svnserve on with root.
 
Note: Of course, there are more than one method. There are self-starting scripts on the Internet, and xinetd-enabled scripts. I still like this method. A line "Starting svnserve done" appears during the startup process ".
 

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.