Changeset View
Changeset View
Standalone View
Standalone View
devel/p4ftpd/files/p4ftpd.in
Show All 34 Lines | |||||
: ${p4ftpd_enable="NO"} | : ${p4ftpd_enable="NO"} | ||||
: ${p4ftpd_listen="21"} | : ${p4ftpd_listen="21"} | ||||
: ${p4ftpd_port="1666"} | : ${p4ftpd_port="1666"} | ||||
: ${p4ftpd_debug="4"} | : ${p4ftpd_debug="4"} | ||||
: ${p4ftpd_log="%%P4LOG%%"} | : ${p4ftpd_log="%%P4LOG%%"} | ||||
command="%%PREFIX%%/sbin/p4ftpd" | command="%%PREFIX%%/sbin/p4ftpd" | ||||
command_args="-l ${p4ftpd_listen} -p ${p4ftpd_port} -v ${p4ftpd_debug} -L ${p4ftpd_log} -d -u p4admin ${p4ftpd_args} > /dev/null 2>&1 &" | command_args="-l ${p4ftpd_listen} -p ${p4ftpd_port} -v ${p4ftpd_debug} -L ${p4ftpd_log} -d -u p4admin ${p4ftpd_args} > /dev/null 2>&1 &" | ||||
start_precmd="p4ftpd_prestart" | |||||
p4ftpd_prestart() | |||||
{ | |||||
if [ ! -f "${p4ftpd_log}" ]; then | |||||
install -o p4admin -g p4admin -m 0640 /dev/null ${p4ftpd_log} | |||||
fi | |||||
} | |||||
run_rc_command "$1" | run_rc_command "$1" |