1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/ftp/smbftpd/files/smbftpd.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

31 lines
574 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: smbftpd
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable pure-ftpd:
#
# smbftpd_enable="YES"
. /etc/rc.subr
name=smbftpd
rcvar=smbftpd_enable
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"