#!/bin/sh # # $FreeBSD$ # # 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=%%PREFIX%%/bin/nzbget command_args="-D" run_rc_command "$1"