HTTP interface buttons dosen't work as excepted.

Issue #860 closed
Former user created an issue

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)

  1. Tildeslash repo owner

    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

  2. Mayur Zanjad

    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).

  3. Log in to comment