xref: /freebsd/libexec/rc/rc.d/lpd (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
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
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