Ticket #2987: mythbackend-initoptions.diff
| File mythbackend-initoptions.diff, 1.3 KB (added by , 19 years ago) |
|---|
-
contrib/etc.sysconfig.mythbackend
47 47 # NOTE: If you are running as non-root take care to ensure the myth user 48 48 # has permission to write to this log file. 49 49 # MBE_LOGFILE="/var/tmp/mythbackend.log" 50 51 # Startup options for mythbackend (mythbackend --help) 52 # MBE_OPTIONS="" -
contrib/etc.rc.d.init.d.mythbackend
36 36 MBE_PROG="mythbackend" 37 37 # Full path to mythbackend log file 38 38 MBE_LOGFILE="/var/tmp/mythbackend.log" 39 # Startup options for mythbackend 40 MBE_OPTIONS="" 39 41 40 42 # Source function library. 41 43 . /etc/init.d/functions … … 58 60 if [ ! -f /var/lock/subsys/${MBE_PROG} ]; then 59 61 echo -n "Starting ${MBE_PROG}: " 60 62 # /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} 62 64 RETVAL=$? 63 65 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/${MBE_PROG} 64 66 echo
