#!/bin/sh
#
# $FreeBSD: head/news/nzbget/files/nzbget.in 463542 2018-03-03 23:33:33Z bdrewery $
#
# PROVIDE: nzbget
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# nzbget_enable (bool):	Set to NO by default.
#			Set it to YES to enable it.

. /etc/rc.subr

name=nzbget
rcvar=nzbget_enable

load_rc_config ${name}

: ${nzbget_enable:=NO}

command=/usr/local/bin/nzbget
command_args="-D"

run_rc_command "$1"
