Comments Off on How to move your cvsroot folder
How to move your cvsroot folder
I recently came across a client who was running out of space on /var and needed to move some files off to a different location. There is history behind it, and this should not be your first option, but the short of it is that cvsroot was one of the folders that needed to be moved.
Here is what I did to get them going again:
- Made sure all users where off of CVS.
- Moved the cvsroot from /var/lib/cvsroot to the new location (/newfolder/var/cvsroot)
- Added the CVSROOT env variable to /etc/profile. This way users running CVS from the command line do not have to specify the -d parameter:
- Updated pserver configuration to reflect the new location. Now your file may not be located exactly where this was, but it should help you track it down:
- Restart inetd
CVSROOT='/newfolder/var/cvsroot' export CVSROOT
$ sudo vi /etc/xinetd.d/cvspserver
Change –allow-root to reflect the new path
$ sudo /etc/rc.d/init.d/xinetd restart