1#!/bin/sh 2# 3# 4 5# PROVIDE: lpd 6# REQUIRE: DAEMON 7# BEFORE: LOGIN 8# KEYWORD: shutdown 9 10. /etc/rc.subr 11 12name="lpd" 13desc="Line printer spooler daemon" 14rcvar="lpd_enable" 15command="/usr/sbin/${name}" 16required_files="/etc/printcap" 17start_precmd="chkprintcap" 18 19: ${lpd_svcj_options:="net_basic"} 20 21chkprintcap() 22{ 23 if checkyesno chkprintcap_enable ; then 24 /usr/sbin/chkprintcap ${chkprintcap_flags} 25 fi 26} 27 28load_rc_config $name 29run_rc_command "$1" 30