You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kenneth McDonald <ke...@sbcglobal.net> on 2004/05/31 03:30:49 UTC

Anyone have Subversion starting up automatically on OS X boot?

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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

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

Posted by OpenMacNews <us...@spamgourmet.com>.
> 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