178344Sobrien#!/bin/sh 278344Sobrien# 398184Sgordon# $FreeBSD: releng/10.2/etc/rc.d/lpd 230099 2012-01-14 02:18:41Z dougb $ 478344Sobrien# 578344Sobrien 678344Sobrien# PROVIDE: lpd 778344Sobrien# REQUIRE: DAEMON 898184Sgordon# BEFORE: LOGIN 9180564Sdougb# KEYWORD: shutdown 1078344Sobrien 1178344Sobrien. /etc/rc.subr 1278344Sobrien 1378344Sobrienname="lpd" 14230099Sdougbrcvar="lpd_enable" 1578344Sobriencommand="/usr/sbin/${name}" 1678344Sobrienrequired_files="/etc/printcap" 17165664Syarstart_precmd="chkprintcap" 1878344Sobrien 19165664Syarchkprintcap() 20142969Sbrooks{ 21142969Sbrooks if checkyesno chkprintcap_enable ; then 22142969Sbrooks /usr/sbin/chkprintcap ${chkprintcap_flags} 23142969Sbrooks fi 24142969Sbrooks} 25142969Sbrooks 2678344Sobrienload_rc_config $name 2778344Sobrienrun_rc_command "$1" 28