freebsd-ports/irc/anope/files/anope.in
Mark Felder 41d43060f1 Update to 2.0.2, take maintainership
* Anope now works (was broken since STAGE)
* All extra modules are now port options
* Anope service runs as nobody by default

Approved by:	mat
2015-04-23 16:49:46 +00:00

28 lines
396 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# 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
command=%%PREFIX%%/anope/bin/services
anope_enable=${anope_enable:-"NO"}
anope_user:=nobody
pidfile=%%PREFIX%%/anope/data/services.pid
run_rc_command "$1"