#!/bin/sh
#
# $NetBSD: taskd.sh,v 1.1 2018/09/02 09:53:14 triaxx Exp $
#

# PROVIDE: taskd
# REQUIRE: NETWORKING FILESYSTEMS
# BEFORE:  DAEMON

. /etc/rc.subr

name="taskd"
rcvar="${name}"
procname="/usr/pkg/bin/${name}"
command="/usr/pkg/bin/${name}ctl"
command_args="$1"
extra_commands="reload"
taskd_env="TASKDDATA=/var/taskd"
taskd_user="taskd"

if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then 
  load_rc_config "${name}"
elif [ -f /usr/pkg/etc/rc.conf ]; then
  . /usr/pkg/etc/rc.conf
fi

run_rc_command "$1"
