summaryrefslogtreecommitdiff
path: root/print/LPRng-core/files/LPRng.sh
blob: f83199d970c55479beffb89a4b291d3a61d18295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#
# $NetBSD: LPRng.sh,v 1.4 2006/06/21 13:50:46 jlam Exp $
#
# PROVIDE: LPRng lpd
# REQUIRE: DAEMON

. /etc/rc.subr

name="LPRng"
rcvar=$name
command="@PREFIX@/sbin/lpd"
pidfile="/var/run/lpd.pid"
required_files="@PKG_SYSCONFDIR@/lpd/lpd.conf"

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

start_precmd="LPRng_prestart"

load_rc_config $name
run_rc_command "$1"