#194 DavMail LaunchDaemon plist OS X Lion

open
nobody
5
2013-07-15
2013-06-03
Anonymous
No

I am trying to launch the DavMail via the launchdaemon plist method, but nothing seems to be happening.

Where should I put my davmail jar/sh files?

Where should I put the preferences file?

What permissions and ownership should I have on them?

Here's my plist (com.sourceforge.davmail.plist) that I tried with no success:

<?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>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
<string>com.sourceforge.davmail</string>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/usr/libexec/davmail/davmail.sh</string>
<string>davmail.properties</string>
<string>&</string>
</array>
<key>StandardOutPath</key>
<string>/dev/null</string>
<key>StandardErrorPath</key>
<string>/dev/null</string>
</dict>
</plist>

I tried with root/wheel ownership. And permissions of 755 on the jar/sh files. Nothin.

Please help.

Discussion

  • Mike Kormendy
    Mike Kormendy
    2013-07-15

    There are some errors in the plist, see updated below:

    <?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>Label</key>
        <string>com.sourceforge.davmail</string>
        <key>RunAtLoad</key>
        <true/>
        <key>ProgramArguments</key>
        <array>
            <string>/usr/libexec/davmail/davmail.sh</string>
            <string>/usr/libexec/davmail/davmail.properties</string>
        </array>
    </dict>
    </plist>
    
     
    Last edit: Mike Kormendy 2013-07-15