I have Monit script to monitor my tvheadend service.
To start the program I would like to use start command
start program = "/etc/init.d/tvheadend start
&& /usr/bin/python /root/antik_epg/antik_xmltv.py
| /usr/bin/socat - UNIX-CONNECT:/etc/tvheadend/epggrab/xmltv.sock"
But for some reason the Monit ignores command after pipe.
It just starts
tvheadend
and only runs /usr/bin/python /root/antik_epg/antik_xmltv.py
.
It does not run /usr/bin/socat - UNIX-CONNECT:/etc/tvheadend/epggrab/xmltv.sock
How to run all commands?
I have tried to run custom scripts:
start program = "/bin/ash -c '/root/tvheadend_start.sh'"
But the result was same.
The command runs perfectly directly from bash.
Thanks for your help.
Asked by user9338787
(1 rep)
Dec 4, 2019, 09:49 PM
Last activity: Dec 6, 2019, 06:22 AM
Last activity: Dec 6, 2019, 06:22 AM