aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-15 01:33:50 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-15 01:33:50 +0000
commit4ef99a76efc9d1fad4747163289cb51fe3971db8 (patch)
tree867b0c208815807f5891f3720495cac6dc53ccb7 /contrib
parent8b997b6ae37cf53d86a1918be28dfc999d4d1ee0 (diff)
Launch Asterisk on Mac OS X with launchd.
Reviewboard: https://reviewboard.asterisk.org/r/551/ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@252361 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'contrib')
-rw-r--r--contrib/init.d/org.asterisk.asterisk.plist47
1 files changed, 47 insertions, 0 deletions
diff --git a/contrib/init.d/org.asterisk.asterisk.plist b/contrib/init.d/org.asterisk.asterisk.plist
new file mode 100644
index 000000000..a0c87e835
--- /dev/null
+++ b/contrib/init.d/org.asterisk.asterisk.plist
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Label</key>
+ <string>org.asterisk.asterisk.launchagent</string>
+ <key>Disabled</key>
+ <false/><!-- Change this to '<true/>' to disable Asterisk -->
+ <key>UserName</key>
+ <string>asterisk</string>
+ <key>GroupName</key>
+ <string>asterisk</string>
+ <key>OnDemand</key><!-- For 10.4 (deprecated in 10.5 and above) -->
+ <false/>
+ <key>KeepAlive</key><!-- For 10.5 and above -->
+ <true/>
+ <key>RunAtLoad</key>
+ <true/>
+ <key>Umask</key>
+ <integer>432</integer><!-- 0660 -->
+ <key>Program</key>
+ <string>/usr/local/sbin/asterisk</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>/usr/local/sbin/asterisk</string>
+ <string>-f</string><!-- Don't fork. This option is mandatory when running with launchd. -->
+ </array>
+ <key>EnvironmentVariables</key>
+ <dict>
+ <key>TERM</key>
+ <string>xterm-color</string>
+ </dict>
+ <key>SoftResourceLimits</key>
+ <dict>
+ <key>NumberOfFiles</key>
+ <integer>1024</integer>
+ <key>Core</key>
+ <integer>0</integer>
+ </dict>
+ <key>StandardInPath</key>
+ <string>/dev/null</string>
+ <key>StandardOutPath</key>
+ <string>/dev/null</string>
+ <key>StandardErrorPath</key>
+ <string>/dev/null</string>
+</dict>
+</plist>