Skip to content

Instantly share code, notes, and snippets.

@ritalin
Forked from saimonmoore/ejabberd.plist
Created October 8, 2012 05:56
Show Gist options
  • Save ritalin/3850947 to your computer and use it in GitHub Desktop.
Save ritalin/3850947 to your computer and use it in GitHub Desktop.
For using installer, daemonize ejabberd
<?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>Disabled</key>
<false/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>net.process-one.Ejabberd2</string>
<key>ProgramArguments</key>
<array>
<string>sudo</string>
<string>/Applications/ejabberd-2.1.11/bin/erl</string>
<string>-sname</string>
<string>ejabberd@localhost</string>
<string>-noinput</string>
<string>-pa</string>
<string>/Applications/ejabberd-2.1.11/lib/ejabberd-2.1.11/ebin</string>
<string>-mnesia</string>
<string>dir</string>
<string>/Applications/ejabberd-2.1.11/lib/ejabberd/db/ejabberd</string>
<string>-s</string>
<string>ejabberd</string>
<string>-sasl</string>
<string>sasl_error_logger</string>
<string>{file,"/Applications/ejabberd-2.1.11/log/ejabberd/sasl.log"}</string>
<string>+K</string>
<string>true</string>
<string>-smp</string>
<string>auto</string>
<string>+P</string>
<string>250000</string>
<string>start</string>
</array>
<key>RunAtLoad</key>
<false/>
<key>UserName</key>
<string>saimon</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment