[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Anyone have Subversion starting up automatically on OS X boot?

From: OpenMacNews <users-subversion.20.openmacnews_at_spamgourmet.com>
Date: 2004-05-31 06:00:17 CEST

> I apologise; I've asked this question before (with no takers :-) ), but it is still giving
> me problems, so I thought I'd give it one more try.
>
> I've have Subversion installed and working very nicely under OS X (on an
> old iMac I bought specifically for this, actually), but have one small problem;
> I cannot for the life of me get the scripts that should start it up as a daemon
> at boot working properly. I've tried settup it up both as an xinetd service,
> and and a standalone service, to no avail.
>
> I don't expect a walkthrough or anyone, but I'm hoping some other OS X
> user might have this working, and would simply post the appropriate
> scripts/config files to the group...
>
> Thanks,
> Ken McDonald

this setup works perfectly for me on OSX 10.3.3 & 10.2.8 ... hope it helps =)

mkdir /Library/StartupItems/SubVersion

------------------------------------------
(EDITOR) /Library/StartupItems/SubVersion/SubVersion
#!/bin/sh

. /etc/rc.common

if [ "${SUBVERSION:=-NO-}" = "-YES-" ]; then
        ConsoleMessage "Starting SubVersion Source Control"
        /usr/local/bin/svnserve -d
fi
------------------------------------------

------------------------------------------
(EDITOR) /Library/StartupItems/SubVersion/StartupParameters.plist
{
  Description = "SubVersion Server";
  Provides = ("SourceControl");
  Requires = ("Disks", "Resolver","Network Time");
  OrderPreference = "None";
  Messages =
  {
    start = "Starting SubVersion Source Control";
    stop = "Stopping SubVersion Source Control";
  };
}
------------------------------------------

chown -R root:wheel /Library/StartupItems/SubVersion ;\
chmod 755 /Library/StartupItems/SubVersion ;\
chmod 755 /Library/StartupItems/SubVersion/SubVersion ;\
chmod 644 /Library/StartupItems/SubVersion/StartupParameters.plist

------------------------------------------
(EDITOR) /etc/hostconfig
+++ SUBVERSION=-YES-
------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 31 06:01:14 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.