#!/bin/sh

# $FreeBSD: head/print/cups-filters/files/cups_browsed.in 410825 2016-03-11 11:53:42Z tijl $
#
# PROVIDE: cups_browsed
# REQUIRE: cupsd avahi_daemon
# KEYWORD: shutdown
#
# Add the following to /etc/rc.conf[.local] to enable this service
#
# cups_browsed_enable (bool):	Set to NO by default.
#				Set it to YES to enable cups_browsed.
#

. /etc/rc.subr

name=cups_browsed
rcvar=cups_browsed_enable

load_rc_config ${name}

 : ${cups_browsed_enable:=NO}

command=/usr/sbin/daemon
pidfile=/var/run/cups-browsed.pid
command_args="-p ${pidfile} /usr/local/sbin/cups-browsed"
procname="/usr/local/sbin/cups-browsed"

run_rc_command "$1"
