diff options
Diffstat (limited to 'net/apinger/files/apinger.in')
-rw-r--r-- | net/apinger/files/apinger.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net/apinger/files/apinger.in b/net/apinger/files/apinger.in new file mode 100644 index 000000000000..970a389df625 --- /dev/null +++ b/net/apinger/files/apinger.in @@ -0,0 +1,28 @@ +#!/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" |