Changeset View
Changeset View
Standalone View
Standalone View
head/etc/rc.d/lpd
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# PROVIDE: lpd | # PROVIDE: lpd | ||||
# REQUIRE: DAEMON | # REQUIRE: DAEMON | ||||
# BEFORE: LOGIN | # BEFORE: LOGIN | ||||
# KEYWORD: shutdown | # KEYWORD: shutdown | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="lpd" | name="lpd" | ||||
desc="Line printer spooler daemon" | |||||
rcvar="lpd_enable" | rcvar="lpd_enable" | ||||
command="/usr/sbin/${name}" | command="/usr/sbin/${name}" | ||||
required_files="/etc/printcap" | required_files="/etc/printcap" | ||||
start_precmd="chkprintcap" | start_precmd="chkprintcap" | ||||
chkprintcap() | chkprintcap() | ||||
{ | { | ||||
if checkyesno chkprintcap_enable ; then | if checkyesno chkprintcap_enable ; then | ||||
/usr/sbin/chkprintcap ${chkprintcap_flags} | /usr/sbin/chkprintcap ${chkprintcap_flags} | ||||
fi | fi | ||||
} | } | ||||
load_rc_config $name | load_rc_config $name | ||||
run_rc_command "$1" | run_rc_command "$1" |