#!/bin/sh
#
# $NetBSD: LPRng.sh,v 1.5 2011/10/07 22:37:05 shattered Exp $
#
# PROVIDE: LPRng lpd
# REQUIRE: DAEMON

. /etc/rc.subr

name="LPRng"
rcvar=$name
command="/usr/pkg/sbin/lpd"
pidfile="/var/run/lpd.pid"
required_files="/usr/pkg/etc/lpd/lpd.conf"

LPRng_prestart()
{
	# Verify permissions of spool directories for existing printcap
	# entries.
	#
	test ! -x /usr/pkg/sbin/checkpc || /usr/pkg/sbin/checkpc -f
}

start_precmd="LPRng_prestart"

load_rc_config $name
run_rc_command "$1"
