ports/net/apinger/files/apinger.in
2021-04-06 16:31:13 +02:00

26 lines
429 B
Bash

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