summaryrefslogtreecommitdiff
path: root/print/cups/files/cupsd.in
blob: da432c04b8756081f16773bbaad8bba918e0347e (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
28
29
30
31
32
33
#!/bin/sh

# PROVIDE: cupsd
# REQUIRE: DAEMON %%DBUS_DAEMON%% %%AVAHI_DAEMON%%
# KEYWORD: shutdown
#
# Add the following to /etc/rc.conf[.local] to enable this service
#
# cupsd_enable="YES"
#

. /etc/rc.subr

name="cupsd"
rcvar="cupsd_enable"

start_precmd="${name}_prestart"

command="%%PREFIX%%/sbin/cupsd"
extra_commands="reload"

cupsd_prestart()
{
	if [ -n "$TZ" ]; then
		export TZ
	fi
}

load_rc_config ${name}

: ${cupsd_enable=NO}

run_rc_command "$1"