summaryrefslogtreecommitdiff
path: root/chat/prosody/files/prosody.sh
blob: 7b22581d71995629ac2daacd87878730d4e9884b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"