• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
lauchd and svnserve
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lauchd and svnserve


  • Subject: lauchd and svnserve
  • From: René v Amerongen <email@hidden>
  • Date: Wed, 24 Sep 2008 10:24:18 +0200

Dear list

Not sure where to put this question, but I did see here more of launchd questions.

I got svnserve running with the following plist.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd ">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>PathState</key>
<dict>
<key>/Volumes/Development_Current/_CodeRepository</key>
<true/>
</dict>
</dict>
<key>Label</key>
<string>subversion.svnserve</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/svnserve</string>
<string>-d</string>
<string>-r</string>
<string>/Volumes/Development_Current/_CodeRepository</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/Library/Logs/Subversion_SVNserve.log</string>
</dict>
</plist>


My Volumes/Development_Current/ volume is a firewire disk and when the plist get fired the drive isn't ready yet.
But when it comes up the svnserve starts up en works ok. Just a second but with two or three "does not exist or is not a directory" lines


Some questions however.

1.)While svnserve is running, in my Subversion_SVNserve.log log I see.
svnserve: Root path '/Volumes/Development_Current/_CodeRepository' does not exist or is not a directory.
svnserve: Root path '/Volumes/Development_Current/_CodeRepository' does not exist or is not a directory.
svnserve: Can't bind server socket: Address already in use
svnserve: Can't bind server socket: Address already in use
svnserve: Can't bind server socket: Address already in use
...


and at the console I see the Launchd log

24-09-08 10:06:36 com.apple.launchd[1] (subversion.svnserve[684]) Exited with exit code: 1
24-09-08 10:06:36 com.apple.launchd[1] (subversion.svnserve) Throttling respawn: Will start in 10 seconds
24-09-08 10:06:46 com.apple.launchd[1] (subversion.svnserve[685]) Exited with exit code: 1
24-09-08 10:06:46 com.apple.launchd[1] (subversion.svnserve) Throttling respawn: Will start in 10 seconds
.....


Yesterday I did have a huge PID number a little scary.
Why is it trying to start again? How can I stop that? what is wrong with my plist?



2.) When I unmount the drive, then the svnserve keeps running. I thought the the daemon will get killed.
However it restart when the drive is mounted back online. But how can I get this killed when unmounting the drive.



3.) Actualy I would like to have it start at demand and kills after 10 minutes. I notice that the OnDemand key is gone in 10.5. But how should I do it now?


4.) I did see a few sample script with ip socket info in the plist, what is that for? Do I need that?

Thanks in advance

René

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: lauchd and svnserve
      • From: Roland King <email@hidden>
    • Re: lauchd and svnserve
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: Very basic Bindings question
  • Next by Date: Re: Very basic Bindings question
  • Previous by thread: Re: Very basic Bindings question
  • Next by thread: Re: lauchd and svnserve
  • Index(es):
    • Date
    • Thread