#!/bin/sh
#
# $FreeBSD: branches/2018Q4/irc/anope/files/anope.in 454856 2017-11-24 23:17:50Z dbaio $
#

# PROVIDE: anope
# REQUIRE: LOGIN mysql
# KEYWORD: shutdown

#
# Add the following line to /etc/rc.conf to enable anope:
# anope_enable=YES
#

. /etc/rc.subr

name=anope
rcvar=anope_enable

load_rc_config $name

: ${anope_enable:=NO}
: ${anope_user:=nobody}

command=/usr/local/anope/bin/services
pidfile=/usr/local/anope/data/services.pid
extra_commands=reload

run_rc_command "$1"
