1#!/bin/sh 2# 3# $FreeBSD: releng/10.2/etc/rc.d/lpd 230099 2012-01-14 02:18:41Z dougb $ 4# 5 6# PROVIDE: lpd 7# REQUIRE: DAEMON 8# BEFORE: LOGIN 9# KEYWORD: shutdown 10 11. /etc/rc.subr 12 13name="lpd" 14rcvar="lpd_enable" 15command="/usr/sbin/${name}" 16required_files="/etc/printcap" 17start_precmd="chkprintcap" 18 19chkprintcap() 20{ 21 if checkyesno chkprintcap_enable ; then 22 /usr/sbin/chkprintcap ${chkprintcap_flags} 23 fi 24} 25 26load_rc_config $name 27run_rc_command "$1" 28