ports/net/apinger/files/apinger.in
Michael Landin f6686eeca4 - move message to pkg-message so users installing by a package recieve the
message
- add a new rc script which is installed via USE_RC_SUBR

PR:		ports/143102
Submitted by:	Sevan Janiyan <venture37@geeklan.co.uk>
2010-01-25 12:24:06 +00:00

28 lines
459 B
Bash

#!/bin/sh
# $FreeBSD$
#
# 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=${name}_enable
command=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}.pid
load_rc_config $name
: ${apinger_enable="NO"}
run_rc_command "$1"