aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/smbftpd/files/smbftpd.sh.in
blob: 4a2ed7d2b2de57bcfaf0f0f37167095968e68fb1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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"
#

. /etc/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"