Tips August 2, 2005 at 7:14 pm

CVS pserver launchd item for OS X 10.4

Inspired by the recent excellent launchd overview on afp548, I needed to set up a CVS pserver on our new Tiger Xserve box, migrating from an old Linux server.Here’s a recipe that seems to work.

You’ll need to create a launchd control file, call it cvspserver.plist, and put it in /Library/LaunchDaemons (where local launch control files are supposed to live):

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" ""&gt;
&lt;plist version="1.0"&gt;

You’ll have to change the --allow-root=/Users/cvs CVS root specification above to match your actual root, but otherwise the above should work.

Next, it doesn’t appear that cvs under Tiger can access the standard user/password database, so you’ll have to create a password file in your $CVSHOME/CVSROOT directory:

&#36; cd ~cvs/CVSROOT
&#36; sudo htpasswd -c passwd user1
&#36; sudo htpasswd passwd user2 # etc.

Then, you’ll need a

# launchctl load /Library/LaunchDaemons/cvspserver.list

and you should be in business.
(At the next reboot, cvspserver.plist should be picked up by launchd.)

No Comments

  • Start with this article.

    –Chris Ryland, Em Software

  • I need to make a correction: for this to work with a CVSROOT/passwd
    scheme (where the server has to setuid to the accessing user), the
    UserName value should be root, not cvs, as in:


    –Chris Ryland, Em Software

Leave a reply

You must be logged in to post a comment.