blacklistd revision 301226
1301226Slidl#!/bin/sh 2301226Slidl# 3301226Slidl# Copyright (c) 2016 The FreeBSD Foundation 4301226Slidl# All rights reserved. 5301226Slidl# 6301226Slidl# This software was developed by Kurt Lidl under sponsorship from the 7301226Slidl# FreeBSD Foundation. 8301226Slidl# 9301226Slidl# Redistribution and use in source and binary forms, with or without 10301226Slidl# modification, are permitted provided that the following conditions 11301226Slidl# are met: 12301226Slidl# 1. Redistributions of source code must retain the above copyright 13301226Slidl# notice, this list of conditions and the following disclaimer. 14301226Slidl# 2. Redistributions in binary form must reproduce the above copyright 15301226Slidl# notice, this list of conditions and the following disclaimer in the 16301226Slidl# documentation and/or other materials provided with the distribution. 17301226Slidl# 18301226Slidl# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 19301226Slidl# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20301226Slidl# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21301226Slidl# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 22301226Slidl# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23301226Slidl# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24301226Slidl# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25301226Slidl# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26301226Slidl# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27301226Slidl# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28301226Slidl# SUCH DAMAGE. 29301226Slidl# 30301226Slidl# $FreeBSD: head/etc/rc.d/blacklistd 301226 2016-06-02 19:06:04Z lidl $ 31301226Slidl# 32301226Slidl 33301226Slidl# PROVIDE: blacklistd 34301226Slidl# REQUIRE: netif pf 35301226Slidl 36301226Slidl. /etc/rc.subr 37301226Slidl 38301226Slidlname="blacklistd" 39301226Slidldesc="System blacklist daemon" 40301226Slidlrcvar="blacklistd_enable" 41301226Slidlcommand="/usr/sbin/${name}" 42301226Slidlrequired_files="/etc/blacklistd.conf" 43301226Slidl 44301226Slidlload_rc_config $name 45301226Slidlrun_rc_command "$1" 46