Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all, I have just installed an SVN server on a CentOS 5.4 machine. The repository belongs to the user svnserve.svnserve Everything works great when I start the server explicitly ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    6

    I can't start the SVN server at the boot on CentOS


    Hi all,
    I have just installed an SVN server on a CentOS 5.4 machine.

    The repository belongs to the user svnserve.svnserve

    Everything works great when I start the server explicitly as root in this way:
    sudo -u svnserve /usr/bin/svnserve -d -r /var/svn/


    The next step was to start the SVN server automatically at the boot of the machine.

    So I happened this to my /etc/rc.local file:
    sudo -u svnserve /usr/bin/svnserve -d -r /var/svn/

    After my addition the files /etc/rc.local looks like this:
    touch /var/lock/subsys/local
    sudo -u svnserve /usr/bin/svnserve -d -r /var/svn/

    The first line gets executed. But the SVN server is not up after the boot.

    Can you spot any problem? how can I debug that?

    Thanks,
    Dan

  2. #2
    Just Joined! chanduderoyal's Avatar
    Join Date
    Dec 2009
    Posts
    2
    use su instead of using sudo, sudo is for super user .........

  3. #3
    Just Joined!
    Join Date
    Jan 2009
    Posts
    6
    chanduderoyal, thanks for your reply.

    After your suggestion, I have tried with:
    su svnserve -c '/usr/bin/svnserve -d -r /var/svn/'

    But I got this:
    This account is currently not available.

    That is because I created the account svnserve this way:
    useradd -g svnserve -s /sbin/nologin -M svnserve

    I want to keep preventing the user svnserve from logging in to the machine.

    What should I do?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •