diff options
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" |