2008-11-12 17:49:09 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2014-06-19 15:03:29 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2008-11-12 17:49:09 +01:00
|
|
|
|
|
|
|
# PROVIDE: anope
|
|
|
|
# REQUIRE: LOGIN mysql
|
2014-06-19 15:03:29 +02:00
|
|
|
# KEYWORD: shutdown
|
2008-11-12 17:49:09 +01:00
|
|
|
|
|
|
|
#
|
2010-01-30 14:09:05 +01:00
|
|
|
# Add the following line to /etc/rc.conf to enable anope:
|
2014-06-19 15:03:29 +02:00
|
|
|
# anope_enable=YES
|
2008-11-12 17:49:09 +01:00
|
|
|
#
|
|
|
|
|
2010-03-27 01:15:24 +01:00
|
|
|
. /etc/rc.subr
|
2008-11-12 17:49:09 +01:00
|
|
|
|
2014-06-19 15:03:29 +02:00
|
|
|
name=anope
|
2012-01-14 09:57:23 +01:00
|
|
|
rcvar=anope_enable
|
2008-11-12 17:49:09 +01:00
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
|
2015-04-23 18:49:46 +02:00
|
|
|
command=%%PREFIX%%/anope/bin/services
|
2014-06-19 15:03:29 +02:00
|
|
|
|
|
|
|
anope_enable=${anope_enable:-"NO"}
|
2015-04-23 18:49:46 +02:00
|
|
|
anope_user:=nobody
|
|
|
|
pidfile=%%PREFIX%%/anope/data/services.pid
|
2008-11-12 17:49:09 +01:00
|
|
|
|
|
|
|
run_rc_command "$1"
|