41d43060f1
* Anope now works (was broken since STAGE) * All extra modules are now port options * Anope service runs as nobody by default Approved by: mat
28 lines
396 B
Bash
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"
|