#!/bin/sh # PROVIDE: nzbget # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable the nzbget daemon: # # nzbget_enable="YES" # # Following additional settings are available: # # nzbget_user: user to run nzbget as (recommended) # nzbget_conf: path to config if in a non-standard location (optional) . /etc/rc.subr name=nzbget rcvar=nzbget_enable command=%%PREFIX%%/bin/nzbget load_rc_config $name nzbget_enable=${nzbget_enable:-NO} nzbget_user=${nzbget_user:-root} nzbget_conf=${nzbget_conf:+"-c $nzbget_conf"} nzbget_flags="$nzbget_conf -D" run_rc_command "$1"