- changed status to closed
HTTP interface buttons dosen't work as excepted.
I am trying to control firefox process by using HTTP interface buttons in ubuntu 16.04. (Start service, Stop service)
When I click Start service button or Stop service button, it just starts and stops monitoring that (in my case firefox) process.
I expect that the firefox process should killed as i click Stop service button and firefox should be started as Start service button is clicked.
also what to do if the process is user created.
Here is my monitrc code.
check process firefox matching "firefox"
start program = "/etc/init.d/firefox start" with timeout 10 seconds
stop program = "/etc/init.d/firefox stop"
Thanks in advance.
Comments (4)
-
repo owner -
There was problem in my
/etc/init.d/firefox
file. i fixed it.@Tildeslash is there any specific template for init.d file so that it can work with any process (like if I run HelloWorld.cpp).
-
The re are many generic examples for init.d on the internet + some for other init systems for starting the monit service (can be generalized for any service): https://mmonit.com/wiki/Monit/Starting
-
Thanks Martin for sharing this info.
- Log in to comment
Monit just execute the start and stop program and respectively also start and stop monitoring. Please investigate and debug
/etc/init.d/firefox
to try and find the problem