PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/install/xbt/linux/Tracker/xbtt.sh

http://torrentpier2.googlecode.com/
Shell | 30 lines | 12 code | 10 blank | 8 comment | 0 complexity | fc664603c580272cffc0bdf8a506eed8 MD5 | raw file
 1#!/bin/sh
 2#
 3
 4# PROVIDE: xbtt
 5# REQUIRE: NETWORKING mysql
 6
 7# Add the following line to /etc/rc.conf to enable XBTT:
 8# xbtt_enable (bool):  Set to "NO" by default.
 9#                      Set it to "YES" to enable XBTT.
10# xbtt_path (str):     Path to dir with xbt_tracker.conf
11
12. /etc/rc.subr
13
14name="xbtt"
15rcvar=`set_rcvar`
16start_precmd="${name}_prestart"
17
18command="/db/www/xbtt/Tracker/xbt_tracker"
19
20: ${xbtt_path="/db/www/xbtt/Tracker"}
21
22xbtt_prestart()
23{
24	cd ${xbtt_path}
25}
26
27load_rc_config $name
28run_rc_command "$1"
29
30