blob: 579913193e19e50ad0cc542b9d72d0204c16488a (
plain)
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
29
30
31
|
#!/bin/sh
# PROVIDE: opentracker
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf or /etc/rc.conf.local to
# enable opentracker:
# opentracker_enable (bool): Set to "NO" by default.
# opentracker_config (path): Set to
# "%%PREFIX%%/etc/opentracker/opentracker.conf"
# by default
. /etc/rc.subr
name=opentracker
rcvar=opentracker_enable
desc="Lightweight Bittorrent tracker"
load_rc_config $name
: ${opentracker_enable:=NO}
: ${opentracker_config:="%%PREFIX%%/etc/opentracker/opentracker-ipv6.conf"}
command=/usr/sbin/daemon
pidfile=/var/run/opentracker.pid
command_args="-p $pidfile %%PREFIX%%/bin/opentracker -f ${opentracker_config}"
procname="%%PREFIX%%/bin/opentracker"
required_files=${opentracker_config}
run_rc_command $1
|