freebsd-ports/ftp/smbftpd/files/smbftpd.sh.in
Beech Rintoul 6f0aa25a40 - Fix error in procname path
PR:		ports/125355
Submitted by:	Johnpupu <johnpupu@gmail.com>
Approved by:	Jui-Nan Lin <jnlin@csie.nctu.edu.tw> (maintainer)
2008-07-15 02:38:51 +00:00

30 lines
559 B
Bash

#!/bin/sh
# PROVIDE: smbftpd
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable pure-ftpd:
#
# smbftpd_enable="YES"
#
. %%RC_SUBR%%
name=smbftpd
rcvar=`set_rcvar`
load_rc_config $name
command=%%PREFIX%%/sbin/smbftpd
smbftpd_config=${smbftpd_config:-"%%PREFIX%%/etc/smbftpd/smbftpd.conf"}
required_files=${smbftpd_config}
pidfile=/var/run/smbftpd.pid
procname=%%PREFIX%%/sbin/smbftpd
smbftpd_enable=${smbftpd_enable:-"NO"}
command_args="-D -s ${smbftpd_config}"
run_rc_command "$1"