[mythtv-users] mythbackend pid

Wade Maxfield mythtv at hotblack.co.nz
Thu Jul 5 22:44:26 UTC 2007


>Aaah, monit reads the PID file to determine if mythbackend has
>crashed. The PID file is then just logged with running information on
>the process.
>
>Should the monitrc script look like the following?
>
>group mythtv
>  start program = "/usr/local/bin/mythbackend -p
>/var/run/mythbackend.pid /var/run/mythtv/mythbackend.pid restart"
>  stop program  = "/usr/local/bin/mythbackend stop"
>  if failed port 6544 then restart
>  depends on Mysql
>
>Thanks.
>
>AJM,

No.

It should look exactly like 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