#!/bin/sh
#
# $NetBSD: hiawatha.sh,v 1.4 2024/04/25 13:54:17 hauke Exp $
#
# PROVIDE: hiawatha
# REQUIRE: DAEMON
# KEYWORD: shutdown

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

extra_commands=reload

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

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

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