[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [monit] Monit wont start/stop any processes
From: |
Jan-Henrik Haukeland |
Subject: |
Re: [monit] Monit wont start/stop any processes |
Date: |
Mon, 17 Aug 2009 04:50:38 +0200 |
On 17. aug.. 2009, at 01.05, Vaughan Magnusson wrote:
stop = "/bin/bash /home/user/simple_script.sh"
You don't have to start bash to run /home/user/simple_script.sh if it
is a proper script. That is, if the file calls an interpreter in its
first line such as #!/bin/bash. If you want to write shell commands
directly in the start or stop entry you need to start a shell.
To run a script:
stop = "/home/user/simple_script.sh"
To write a statements directly in the stop command:
stop = "/bin/bash -c '<your bash commands here>'"