summaryrefslogtreecommitdiff
path: root/irc/anope/files/anope.in
blob: 6638de7a68f2c94f3ff541c43f061d4e0f3dd8e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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"