summaryrefslogtreecommitdiff
path: root/chat/prosody/files
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2011-09-30 08:33:54 +0000
committerfhajny <fhajny@pkgsrc.org>2011-09-30 08:33:54 +0000
commitfdd8152a02ad78dd9eade20c78afbb280c09d528 (patch)
tree5ac9bbf9cc1b5d123684f90f4c632d01a74866ff /chat/prosody/files
parentf4e975b6d2e85e49b48d618282aba0370d8a5f19 (diff)
downloadpkgsrc-fdd8152a02ad78dd9eade20c78afbb280c09d528.tar.gz
Fix rpath linking & typo in patch file, add a rc.d script (thanks ewdafa)
This fixes PR pkg/45357. Bump PKGREVISION.
Diffstat (limited to 'chat/prosody/files')
-rw-r--r--chat/prosody/files/prosody.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/chat/prosody/files/prosody.sh b/chat/prosody/files/prosody.sh
new file mode 100644
index 00000000000..7b22581d719
--- /dev/null
+++ b/chat/prosody/files/prosody.sh
@@ -0,0 +1,24 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# PROVIDE: prosody
+# REQUIRE: DAEMON
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="prosody"
+rcvar=${name}
+ctl_command="@PREFIX@/bin/${name}ctl"
+required_files="@PKG_SYSCONFDIR@/${name}.cfg.lua"
+pidfile="@VARBASE@/run/${name}.pid"
+#start_precmd="ulimit -n 2048"
+extra_commands="reload status"
+
+start_cmd="${ctl_command} start"
+stop_cmd="${ctl_command} stop"
+reload_cmd="${ctl_command} reload"
+status_cmd="${ctl_command} status"
+
+load_rc_config $name
+run_rc_command "$1"