Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Dec 2006 23:06:41 +0100
From:      Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: MythTV port committed (was: Possible FreeBSD port?)
Message-ID:  <20061224230641.2ab74d87.torfinn.ingolfsen@broadpark.no>
In-Reply-To: <20061220072001.GN4364@wantadilla.lemis.com>
References:  <6300771b0612181401i72e7cc58ta08e12de8d68d4d0@mail.gmail.com> <20061218232247.GQ4364@wantadilla.lemis.com> <6300771b0612181533m6ece3f38p379c78a75912d10d@mail.gmail.com> <6300771b0612181534h3158342aw554869660fc707ea@mail.gmail.com> <20061218234041.GU4364@wantadilla.lemis.com> <4588D859.1010301@xs4all.nl> <20061220072001.GN4364@wantadilla.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 20 Dec 2006 17:50:01 +1030
Greg 'groggy' Lehey <grog@FreeBSD.org> wrote:

> to the build.  Please try it out and contact me with any problems you
> may have.

I have changed the mythbackend startup script a bit, so it works more
like it does under KnoppMyth, and also so I can get a logfile :-)

--- /usr/local/etc/rc.d/mythbackend.org Sun Dec 24 22:43:30 2006
+++ /usr/local/etc/rc.d/mythbackend     Sun Dec 24 22:57:33 2006
@@ -12,16 +12,19 @@
 # DO NOT CHANGE THESE DEFAULT VALUES HERE
 #
 mythbackend_enable=${mythbackend_enable-"NO"}
+mythbackend_logfile=${mythbackend_logfile-"/var/log/mythbackend.log"}
+mythbackend_pidfile=${mythbackend_pidfile-"/var/run/mythbackend.pid"}
 PATH=${PATH}:/usr/local/bin
 
 . /etc/rc.subr
 
 name="mythbackend"
 rcvar=`set_rcvar`
-command="/usr/local/bin/mythbackend &"
+command="/usr/local/bin/mythbackend"
+flags=" --daemon --logfile ${mythbackend_logfile} --pidfile ${mythbackend_pidfile}"
 
 load_rc_config $name
 
-start_cmd="echo \"Starting ${name}.\"; ${command}"
+start_cmd="echo \"Starting ${name}.\"; ${command} ${flags}"
 
 run_rc_command "$1"


Note; I haven't checked if my changes follows proper style.
-- 
Regards,
Torfinn Ingolfsen,
Norway




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061224230641.2ab74d87.torfinn.ingolfsen>