blob: 133f8a3e5b823f3f9ad49074f98520b56ef131a9 (
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: shutdown
#
# Add the following lines to /etc/rc.conf to enable wzdftpd
# wzdftpd_enable="YES"
# wzdftpd_flags="<set as needed>"
wzdftpd_enable=${wzdftpd_enable:-"NO"} # Enable wzdftpd
. /etc/rc.subr
name="wzdftpd"
rcvar=wzdftpd_enable
command="%%PREFIX%%/sbin/${name}"
required_files="%%PREFIX%%/etc/wzd.cfg"
load_rc_config $name
run_rc_command "$1"
|