Search code examples
macossvnlaunchd

Unable to start subversion using Launchctl


I'm trying to use Launchctl to launch svnserve process but I keep getting an error saying "no plist was returned for:/Library/LaunchAgents/org.tigris.subversion.svnserve.plist". This is where svnserve is /opt/local/bin/svnserve and this is the plist file Any thoughts what might be wrong here ?

<dict>
  <key>Disabled</key>
  <false/>
  <key>Label</key>
  <string>org.tigris.subversion.svnserve</string>
  <key>ProgramArguments</key>
  <array>
      <string>/opt/local/bin/svnserve</string>
      <string>--inetd</string>
      <string>--root=/Users/Sunit/Repositories</string>
  </array>
  <key>ServiceDescription</key>
  <string>SVN Version Control System/string>
  <key>Sockets</key>
  <dict>
    <key>Listeners</key>
    <array>
      <dict>
        <key>SockFamily</key>
        <string>IPv4</string>
        <key>SockServiceName</key>
        <string>svn</string>
        <key>SockType</key>
        <string>stream</string>
      </dict>
      <dict>
        <key>SockFamily</key>
        <string>IPv6</string>
        <key>SockServiceName</key>
        <string>svn</string>
        <key>SockType</key>
        <string>stream</string>
      </dict>
    </array>
  </dict>

Solution

  • That file is not valid XML - you don't close the <string> tag on line 13 correctly, and you never close the outermost <dict> tag.

    You can use plutil -lint to check a property list's validity, or simply use Property List Editor, Xcode or a third-party property list editor to construct the property list graphically.