MythTV port committed (was: Possible FreeBSD port?)

Torfinn Ingolfsen torfinn.ingolfsen at broadpark.no
Sun Dec 24 14:06:42 PST 2006


On Wed, 20 Dec 2006 17:50:01 +1030
Greg 'groggy' Lehey <grog at 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



More information about the freebsd-multimedia mailing list