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