[mythtv-users] mythbackend pid
Wade Maxfield
mythtv at hotblack.co.nz
Thu Jul 5 11:29:50 UTC 2007
>Just an FYI, I'm running Ubuntu SVN 13754.
>
>Just looking in my current monitrc file and this is what I have.
>
> group mythtv
> start program = "/usr/local/bin/mythbackend --pidfile
>/var/run/mythtv/mythbackend.pid restart"
> stop program = "/usr/local/bin/mythbackend stop"
> if failed port 6544 then restart
> depends on Mysql
> #depends on Lirc
>
I don't think that is going to work. If mythbackend has locked up,
or isn't running at all, then doing "/usr/local/bin/mythbackend stop"
isn't much help.
I've never used Ubuntu, but I think the way to start/stop the backend is
/etc/init.d/mythtv-backend start|stop
(sample init.d script here http://parker1.co.uk/myth/mythtv-backend
in case yours is missing)
So then the monitrc should have this:
####################
check process mythbackend with pidfile /var/run/mythtv/mythbackend.pid
group mythtv
start program = "/etc/init.d/mythtv-backend start"
stop program = "/etc/init.d/mythtv-backend stop"
if failed port 6544 proto http then restart
mode manual
depends on mysql
####################
- Wade
More information about the mythtv-users
mailing list