mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
9aac569eaa
Where necessary add $FreeBSD$ to the file No PORTREVISION bump necessary because this is a no-op
31 lines
574 B
Bash
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"
|