[mythtv-users] What starts mythlcdserver???
Nemo Inis
nemoinis at telus.net
Mon Jul 23 21:30:40 UTC 2007
On Jul 20, 2007, at 3:45 AM, Steve Smith wrote:
> I'm having a problem where on boot mythlcdserver starts automatically
> but
> doesn't seem to connect to the
> LCDproc daemon. Killing it and starting it by hand makes it work.
> Obviously
> a timing issue with the boot sequence.
>
> The trouble is I can't find what is starting mythlcdserver in the first
> place. The parent PID is 1 so it looks like init... anyone have any
> clues on
> this?
>
> (Running Ubuntu Fiesty with mythbuntu 0.20-fixes packages.)
>
>
> Cheers
>
> Steve
>
On my Edgy system I added it as an entry to /etc/init.d (then so that
I could control the startup sequence better. I start it very late (even
after the backend) to give LCDd lots of time to initialize.
Here's my /etc/init.d/mythlcdserver file:
-------------------
#! /bin/sh
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/mythlcdserver
NAME=mythlcdserver
DESC="mythlcdserver"
DAEMON_OPTS="-d -m MythTV"
test -f $DAEMON || exit 0
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet \
--exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --oknodo --quiet \
--exec $DAEMON
echo "$NAME."
;;
#reload)
#
# If the daemon can reload its config files on the fly
# for example by sending it SIGHUP, do it here.
#
# If the daemon responds to changes in its config file
# directly anyway, make this a do-nothing entry.
#
# echo "Reloading $DESC configuration files."
# start-stop-daemon --stop --signal 1 --quiet --pidfile \
# /var/run/$NAME.pid --exec $DAEMON
#;;
restart|force-reload)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $DESC: "
$0 stop
sleep 1
$0 start
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
--------------
More information about the mythtv-users
mailing list