[mythtvnz] OT: monit
Andrew Ruthven
andrew at etc.gen.nz
Wed Nov 28 00:40:22 GMT 2007
On Tue, 2007-11-27 at 07:53 +1300, Criggie wrote:
> Hey all - after a wee problem with mythtv-backend not running, I have set
> up an app called monit.
I'm a perl guy, so I'm using psmon to do this. My /etc/psmon.conf file
has the following in it:
<Process mythbackend>
SpawnCmd /etc/init.d/mythtv-backend restart
pidfile /var/run/mythtv/mythbackend.pid
instances 1
</Process>
And that's it. I get an email when it is restarted, very handy. :)
Cheers!
--
Andrew Ruthven
Wellington, New Zealand
At home: andrew at etc.gen.nz | This space intentionally
| left blank.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ourshack.com/pipermail/mythtvnz/attachments/20071128/7a159936/attachment.pgp
More information about the mythtvnz
mailing list