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