aboutsummaryrefslogtreecommitdiff
path: root/ftp/wzdftpd/files/wzdftpd.sh
blob: 3cbda3b9f65e43fdf3ba6f36822bc6fcf0dc0268 (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
#!/bin/sh

# Start or stop wzdftpd
# $FreeBSD$

# PROVIDE: wzdftpd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: FreeBSD shutdown
#

prefix=%%PREFIX%%

wzdftpd_enable=${wzdftpd_enable:-"NO"}		# Enable wzdftpd
wzdftpd_program="${prefix}/sbin/wzdftpd"	# Location of wzdftpd
wzdftpd_flags=${wzdftpd_flags:-""}		# Flags to wzdftpd

. %%RC_SUBR%%

name="wzdftpd"
rcvar=`set_rcvar`
command="${prefix}/sbin/${name}"
required_files="${prefix}/etc/wzd.cfg"

load_rc_config $name
run_rc_command "$1"