35 lines
444 B
Bash
35 lines
444 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: cupsd
|
|
# REQUIRE: 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"
|