2001-06-16 07:16:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-06-13 22:14:37 +00:00
|
|
|
# $FreeBSD$
|
2001-06-16 07:16:14 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: lpd
|
|
|
|
# REQUIRE: DAEMON
|
2002-06-13 22:14:37 +00:00
|
|
|
# BEFORE: LOGIN
|
2008-07-16 19:50:29 +00:00
|
|
|
# KEYWORD: shutdown
|
2001-06-16 07:16:14 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="lpd"
|
2016-04-23 16:10:54 +00:00
|
|
|
desc="Line printer spooler daemon"
|
2012-01-14 02:18:41 +00:00
|
|
|
rcvar="lpd_enable"
|
2001-06-16 07:16:14 +00:00
|
|
|
command="/usr/sbin/${name}"
|
|
|
|
required_files="/etc/printcap"
|
2006-12-30 22:53:20 +00:00
|
|
|
start_precmd="chkprintcap"
|
2005-03-02 02:46:47 +00:00
|
|
|
|
2006-12-30 22:53:20 +00:00
|
|
|
chkprintcap()
|
2005-03-02 02:46:47 +00:00
|
|
|
{
|
|
|
|
if checkyesno chkprintcap_enable ; then
|
|
|
|
/usr/sbin/chkprintcap ${chkprintcap_flags}
|
|
|
|
fi
|
|
|
|
}
|
2001-06-16 07:16:14 +00:00
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|