3 # $FreeBSD: head/www/py-rhodecode/files/rhodecode.in 326200 2013-09-03 18:56:27Z wg $
7 # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
8 # to enable this service:
10 # rhodecode_enable (bool): Set to NO by default.
11 # Set it to YES to enable rhodecode.
12 # rhodecode_config (string):
13 # rhodecode config file for paster
14 # rhodecode_user (string):
15 # User to run rhodecode
16 # rhodecode_group (string):
17 # Group to run rhodecode
22 rcvar=rhodecode_enable
24 load_rc_config ${name}
26 : ${rhodecode_enable="NO"}
27 : ${rhodecode_config="%%PREFIX%%/etc/rhodecode/production.ini"}
28 : ${rhodecode_user="www"}
29 : ${rhodecode_group="www"}
31 pidfile="/var/run/${name}/${name}.pid"
32 logfile="/var/run/${name}.log"
33 command=%%PREFIX%%/bin/paster
34 start_precmd="install -d -o ${rhodecode_user} ${pidfile%/*} && install -o ${rhodecode_user} /dev/null ${logfile}"
35 start_cmd="rhodecode_start"
36 status_cmd="rhodecode_status"
37 stop_cmd="rhodecode_stop"
41 --user=${rhodecode_user} \
42 --group=${rhodecode_group} \
43 --pid-file=${pidfile} \
44 --log-file=${logfile} \
51 --pid-file=${pidfile}\
58 --user=${rhodecode_user} \
59 --group=${rhodecode_group} \
60 --pid-file=${pidfile} \
65 required_files="${rhodecode_config}"