aboutsummaryrefslogtreecommitdiff
path: root/net-im/py-punjab/files/punjab.sh.in
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2008-02-15 05:05:56 +0000
committerBeech Rintoul <beech@FreeBSD.org>2008-02-15 05:05:56 +0000
commit1f82db18a4eca4df8e4d289a297d75ed89459f3c (patch)
treebf41e234b67d50f1a7f7df061f69ab3ddddd64ff /net-im/py-punjab/files/punjab.sh.in
parentd1cc839e3d5cef8cda5a62173d19264becf01314 (diff)
downloadports-1f82db18a4eca4df8e4d289a297d75ed89459f3c.tar.gz
ports-1f82db18a4eca4df8e4d289a297d75ed89459f3c.zip
PunJab is a HTTP jabber client interface. It is a SOAP, XMLRPC,
JEP-0025 or JEP-0124 server that allows persistent client connections to a jabber server. It can be used for many things, but its main purpose is to allow for stateless applications (ie web) a stateful connection to jabber. For more information about punjab see the following URL : WWW: http://www.butterfat.net/wiki/Projects/PunJab PR: ports/94024 Submitted by: jodocus <jodocus at jodocus.org>
Notes
Notes: svn path=/head/; revision=207227
Diffstat (limited to 'net-im/py-punjab/files/punjab.sh.in')
-rw-r--r--net-im/py-punjab/files/punjab.sh.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/net-im/py-punjab/files/punjab.sh.in b/net-im/py-punjab/files/punjab.sh.in
new file mode 100644
index 000000000000..3411803dd292
--- /dev/null
+++ b/net-im/py-punjab/files/punjab.sh.in
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+
+# PROVIDE: punjab
+# REQUIRE: DAEMON
+# BEFORE:
+
+. %%RC_SUBR%%
+
+punjab_enable=${punjab_enable-"NO"}
+punjab_chdir=${punjab_chdir-"%%HTMLDIR%%"}
+
+name="punjab"
+rcvar=`set_rcvar`
+pidfile="/var/run/twistd.pid"
+command="%%PREFIX%%/bin/twistd"
+command_args="--pidfile $pidfile -f %%PREFIX%%/libexec/punjab.tap"
+command_interpreter="%%PYTHON_CMD%%"
+
+load_rc_config $name
+run_rc_command "$1"
+