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.
- 12-27-2009 #1Just 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
- 12-28-2009 #2
use su instead of using sudo, sudo is for super user .........
- 12-28-2009 #3Just 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?


Reply With Quote
