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 ".