Changeset View
Changeset View
Standalone View
Standalone View
devel/p4d/files/p4d.in
Show All 35 Lines | |||||
: ${p4d_root="%%P4ROOT%%"} | : ${p4d_root="%%P4ROOT%%"} | ||||
: ${p4d_port="1666"} | : ${p4d_port="1666"} | ||||
: ${p4d_debug="server=3"} | : ${p4d_debug="server=3"} | ||||
: ${p4d_log="%%P4LOG%%"} | : ${p4d_log="%%P4LOG%%"} | ||||
command="%%PREFIX%%/sbin/p4d" | command="%%PREFIX%%/sbin/p4d" | ||||
command_args="-r ${p4d_root} -p ${p4d_port} -v ${p4d_debug} -L ${p4d_log} -d ${p4d_args} > /dev/null 2>&1 &" | command_args="-r ${p4d_root} -p ${p4d_port} -v ${p4d_debug} -L ${p4d_log} -d ${p4d_args} > /dev/null 2>&1 &" | ||||
p4d_user="p4admin" | p4d_user="p4admin" | ||||
start_precmd="p4d_prestart" | |||||
p4d_prestart() | |||||
{ | |||||
if [ ! -f "${p4d_log}" ]; then | |||||
install -o p4admin -g p4admin -m 0640 /dev/null ${p4d_log} | |||||
fi | |||||
} | |||||
run_rc_command "$1" | run_rc_command "$1" |