Ticket #2987: mythbackend-initoptions.diff

File mythbackend-initoptions.diff, 1.3 KB (added by knowledgejunkie@…, 19 years ago)

Unified diff for changes to init scripts

  • contrib/etc.sysconfig.mythbackend

     
    4747# NOTE: If you are running as non-root take care to ensure the myth user
    4848# has permission to write to this log file.
    4949# MBE_LOGFILE="/var/tmp/mythbackend.log"
     50
     51# Startup options for mythbackend (mythbackend --help)
     52# MBE_OPTIONS=""
  • contrib/etc.rc.d.init.d.mythbackend

     
    3636MBE_PROG="mythbackend"
    3737# Full path to mythbackend log file
    3838MBE_LOGFILE="/var/tmp/mythbackend.log"
     39# Startup options for mythbackend
     40MBE_OPTIONS=""
    3941
    4042# Source function library.
    4143. /etc/init.d/functions
     
    5860        if [ ! -f /var/lock/subsys/${MBE_PROG} ]; then
    5961            echo -n "Starting ${MBE_PROG}: "
    6062            # /usr/local/bin/mythbackend -d -l /some/log/file
    61             daemon --user ${MBE_USER} ${MBE_LOCATION}${MBE_PROG} -d -l ${MBE_LOGFILE}
     63            daemon --user ${MBE_USER} ${MBE_LOCATION}${MBE_PROG} -d -l ${MBE_LOGFILE} ${MBE_OPTIONS}
    6264            RETVAL=$?
    6365            [ $RETVAL -eq 0 ] && touch /var/lock/subsys/${MBE_PROG}
    6466            echo