#!/bin/sh
#
# $NetBSD: and.sh,v 1.1 2023/06/15 09:55:25 hauke Exp $
#
# PROVIDE: and
# REQUIRE: DAEMON

name="and"
command="/usr/pkg/sbin/${name}"

if [ -f /etc/rc.subr ]; then
    	. /etc/rc.subr

	rcvar=${name}
	required_files="/usr/pkg/etc/${name}.conf"
	pidfile="/var/run/${name}.pid"

	load_rc_config ${name}
	run_rc_command "$1"
else
        echo -n " ${name}"
	${command} ${and_flags}
fi
