#!/bin/sh # $FreeBSD: head/net-im/prosody/files/prosody.in 548450 2020-09-13 04:42:19Z lwhsu $ # # PROVIDE: prosody # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # prosody_enable (bool): Set to NO by default. # Set it to YES to enable Prosody . /etc/rc.subr name="prosody" rcvar="prosody_enable" command="%%PREFIX%%/bin/prosody" command_args="-D" command_interpreter="%%LUA_PREFIX%%/bin/%%LUA_CMD%%" extra_commands="reload" prosody_user="%%USERS%%" prosody_group="%%GROUPS%%" load_rc_config $name prosody_enable=${prosody_enable:-"NO"} pidfile=${prosody_pidfile:-"/var/run/prosody/prosody.pid"} run_rc_command "$1"