blob: 17e6af628911ec0a40b0daa08b65917706d2c210 (
plain) (
blame)
| 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
28
29
30
31
32
33
34
35
36
37
38
 | #!/bin/sh
# PROVIDE: lprng
# REQUIRE: LOGIN
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# lprng_enable (bool): Set to NO by default.
#                      Set it to YES to enable lprng.
#
. /etc/rc.subr
name="lprng"
rcvar=lprng_enable
command=%%PREFIX%%/sbin/lpd
required_files="/etc/printcap %%PREFIX%%/etc/lpd.conf %%PREFIX%%/etc/lpd.perms"
start_precmd=start_precmd
start_precmd()
{
	if checkyesno lpd_enable; then
		warn "lpd must be disabled"
		return 1
	fi
	%%PREFIX%%/sbin/checkpc -f
}
load_rc_config $name
: ${lprng_enable="NO"}
run_rc_command "$1"
 |