#!/bin/sh

# $FreeBSD: net/apinger/files/apinger.in 300897 2012-07-14 14:29:18Z beat $
#
# PROVIDE: apinger
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# apinger_enable (bool):   Set to NO by default.
#               Set it to YES to enable apinger.
#

. /etc/rc.subr

name="apinger"
rcvar=apinger_enable

command=/usr/local/sbin/${name}
pidfile=/var/run/${name}.pid

load_rc_config $name

: ${apinger_enable="NO"}

run_rc_command "$1"
