← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 708643] [NEW] /etc/init/mythtv-backend needs to source /etc/default/mythtv-backend

 

Public bug reported:

I thought I had reported this once before but I could not find any sign
of it.  Perhaps I just discussed it in IRC or something.

In any case, the backend initscript needs to source /etc/default/mythtv-
backend as it did previously when it was an /etc/init.d/ initscript.

The reason is that some people might need to set some environment that
will affect the backend process, such as, for example:

# need to set the proxy for mythfilldatabase
export http_proxy=http://proxy:3128/

It's a simple one line change:

--- /etc/init/mythtv-backend.conf.new	2010-12-30 19:00:10.000000000 -0500
+++ /etc/init/mythtv-backend.conf	2010-11-17 07:29:58.000000000 -0500
@@ -19,6 +19,7 @@
 end script
 
 script
+	. /etc/default/mythtv-backend
 	test -f /etc/default/locale && . /etc/default/locale || true
 	LANG=$LANG /usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log --user mythtv
 end script

In the case of people who have no need for it, the above change is
benign, but for people who do need it, it's very useful, so there really
should be no reason to resist it.

** Affects: mythbuntu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to Mythbuntu.
https://bugs.launchpad.net/bugs/708643

Title:
  /etc/init/mythtv-backend needs to source /etc/default/mythtv-backend

Status in Mythbuntu, Ubuntu derivative focused upon MythTV:
  New

Bug description:
  I thought I had reported this once before but I could not find any
  sign of it.  Perhaps I just discussed it in IRC or something.

  In any case, the backend initscript needs to source /etc/default
  /mythtv-backend as it did previously when it was an /etc/init.d/
  initscript.

  The reason is that some people might need to set some environment that
  will affect the backend process, such as, for example:

  # need to set the proxy for mythfilldatabase
  export http_proxy=http://proxy:3128/

  It's a simple one line change:

  --- /etc/init/mythtv-backend.conf.new	2010-12-30 19:00:10.000000000 -0500
  +++ /etc/init/mythtv-backend.conf	2010-11-17 07:29:58.000000000 -0500
  @@ -19,6 +19,7 @@
   end script
   
   script
  +	. /etc/default/mythtv-backend
   	test -f /etc/default/locale && . /etc/default/locale || true
   	LANG=$LANG /usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log --user mythtv
   end script

  In the case of people who have no need for it, the above change is
  benign, but for people who do need it, it's very useful, so there
  really should be no reason to resist it.





Follow ups

References