Re¢ently

  1. Fixing a launchd and svnserve problem on Leopard

    jake on 2008.06.12
    at 12:12 am

    It’s not too difficult to configure the basics of Subversion (Leopard includes it). But it’s not a huge leap to want the server component running perpetually in the background. That’s not as straight forward. Instructions exist but a few snags with launchctl means you cannot automate svnserve’s launch. It didn’t work on the first try for me.

    But after that hurdle an issue arose where my machine starts the service, and then restarts it, again and again. A little digging reveals the console reporting “Exited with exit code: 1” and if you look at the launchctl list the status is also set to 1. Google isn’t much help so it’s time for trial and error. After pulling a few commands from the .plist file there’s still a successful launch and the restart problem goes away.

    The following are the superfluous properties (it’s possible there are more you can remove).

    <key>Disabled</key>
    <false/>
    <key>OnDemand</key>
    <false/>
    

    Happy editing!

    Posted in: Apple · Programming

     

    Comments (1)

    1. Hank Zimmerman said on 2008.06.12 at 01:26 am

      Ligon

      As an aside, for any work with launchd I cannot recommend Lingon enough. http://lingon.sourceforge.net/

      I just wish it would integrate a “launchctl load” and unload capability (I dislike having to switch into the Terminal just to load the new .plist file I just created).

    Comments have been automatically disabled to curtail spam.

by date

« Nov 2017 »
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
today