ec465c0f07
- unrar and Python are default enabled options - New p7zip option, disabled by default - The final release of 11.0 only requires --disable-sigchld-handler on 32bit FreeBSD [1] [1] http://nzbget.sourceforge.net/forum/viewtopic.php?f=3&t=596&start=10 PR: ports/183026 Approved by: maintainer, swills (mentor)
43 lines
686 B
Bash
43 lines
686 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: nzbget
|
|
# 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}
|
|
|
|
start_cmd="${name}_start"
|
|
status_cmd="${command} status"
|
|
stop_cmd="${name}_stop"
|
|
command=%%PREFIX%%/sbin/nzbgetd
|
|
|
|
nzbget_start()
|
|
{
|
|
echo "Starting ${name}."
|
|
# artificial sleep because it doesnt want to start
|
|
# after a restart without it
|
|
sleep .5
|
|
${command} start
|
|
}
|
|
|
|
nzbget_stop()
|
|
{
|
|
echo "Stopping ${name}."
|
|
${command} stop
|
|
}
|
|
|
|
run_rc_command "$1"
|