diff options
author | fhajny <fhajny> | 2011-09-30 08:33:54 +0000 |
---|---|---|
committer | fhajny <fhajny> | 2011-09-30 08:33:54 +0000 |
commit | 7e661dcba10c7428ac41fe741b4720221af595d4 (patch) | |
tree | 5ac9bbf9cc1b5d123684f90f4c632d01a74866ff /chat/prosody/files | |
parent | 417a9911c5865b8aa6d9f84c908796d788d74235 (diff) | |
download | pkgsrc-7e661dcba10c7428ac41fe741b4720221af595d4.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.sh | 24 |
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" |