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>'" -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
