Modify

Opened 11 years ago

Closed 11 years ago

#3573 closed patch (fixed)

Updates to Fedora init script / sysconfig config file

Reported by: Nick Morrott <knowledgejunkie@…> Owned by: awithers
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords: init script sysconfig fedora
Cc: Ticket locked: no

Description

Further updates to the Fedora init script and sysconfig configuration file. Updates include:

  • Add config: information to init-script header


  • Break up logging configuration into log dir, log file, and log options


  • Startup check for pseudo-home directory


  • Startup check for logging directory


  • Hardcode mythbackend.pid filename - this is referenced in init-script header


  • Remove pidfile when stopping mythbackend service


  • Remove unused reload() function


  • Add configuration of MBE_USER to config file (previously missing)


  • Add more information for running mythbackend as a non-root user

Cheers, Nick

Attachments (4)

3573-fedora-init-script-update.diff (5.8 KB) - added by Nick Morrott <knowledgejunkie@…> 11 years ago.
Updates for Fedora init script and sysconfig config file
3573-fedora-init-script-update-2.diff (5.5 KB) - added by Nick Morrott <knowledgejunkie@…> 11 years ago.
Further updates to Fedora init script and config file
3573-fedora-init-script-update-2.2.diff (5.3 KB) - added by Nick Morrott <knowledgejunkie@…> 11 years ago.
Further updates to Fedora init script and config file (ignore earlier file)
3573-fedora-init-script-update-2.3.diff (5.7 KB) - added by Nick Morrott <knowledgejunkie@…> 11 years ago.
Further updates to Fedora init script and config file (ignore earlier files)

Download all attachments as: .zip

Change History (10)

Changed 11 years ago by Nick Morrott <knowledgejunkie@…>

Updates for Fedora init script and sysconfig config file

comment:1 Changed 11 years ago by Nick Morrott <knowledgejunkie@…>

This update also re-orders the user-configurable variables consistently between the two files.

comment:2 Changed 11 years ago by awithers

  • Owner changed from ijr to awithers

comment:3 Changed 11 years ago by awithers

  • Resolution set to fixed
  • Status changed from new to closed

(In [13636]) Closes #3573

Thanks to Nick Morrott for this patch. I modified it slightly, anything broken is my fault.

  • Add config: information to init-script header
  • Break up logging configuration into log dir, log file, and log options
  • Startup check for pseudo-home directory
  • Startup check for logging directory
  • Remove pidfile when stopping mythbackend service
  • Remove unused reload() function
  • Add configuration of MBE_USER to config file (previously missing)
  • Add more information for running mythbackend as a non-root user

comment:4 Changed 11 years ago by Nick Morrott <knowledgejunkie [at] gmail [dot] com>

  • Resolution fixed deleted
  • Status changed from closed to reopened

An update to the Fedora init script and config file which:

  • removes the MYTHTV_HOME variable and runtime checking for its existence


  • adds a further warning about running the backend as non-root


  • some tidying up and re-ordering of variables for consistency


  • hardcodes the pidfile name into the script to allow external script to reference the pidfile

When daemon --user is used to start mythbackend, it calls runuser which in turn starts mythbackend with a login shell. This should ensure that $HOME is correctly defined for the mythbackend user and no extraneous files should be created in /.

Changed 11 years ago by Nick Morrott <knowledgejunkie@…>

Further updates to Fedora init script and config file

Changed 11 years ago by Nick Morrott <knowledgejunkie@…>

Further updates to Fedora init script and config file (ignore earlier file)

comment:5 Changed 11 years ago by Nick Morrott <knowledgejunkie [at] gmail [dot] com>

Further cumulative updates to Fedora init script and config file (ignore earlier files). In addition, this adds silencing of any errors from 'which mythbackend'

Changed 11 years ago by Nick Morrott <knowledgejunkie@…>

Further updates to Fedora init script and config file (ignore earlier files)

comment:6 Changed 11 years ago by awithers

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [14222]) Closes #3573

  • Removed the MYTHTV_HOME variable, no longer needed after the switch to using daemon --user.
  • Add more information about running as non-root.
  • Do not display output from "which mythbackend".

Thanks to Nick Morrott for these updates.

Add Comment

Modify Ticket

Action
as closed The owner will remain awithers.
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.