aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/py-xmpppy-irc/files/xmpppyirc.in
blob: 6035208b72d63a9bafa619abc767f4dd8f3ba067 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# PROVIDE: xmpppyirc
# REQUIRE: DAEMON

. /etc/rc.subr

name="xmpppyirc"
pidfile="/var/run/$name.pid"

command="%%FEXEC%%"
command_args="&"
command_interpreter="%%PYTHON_CMD%%"
required_files="%%PREFIX%%/etc/$name.conf"
start_precmd="touch $pidfile && export PID=$pidfile"

load_rc_config $name
: ${xmpppyirc_enable="NO"}
run_rc_command "$1"