blob: b692c3889ade19466dfb3b92a90f103d7f58ec9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
# 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"
|