[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: EXEC not working Help Help Help
From: |
Jan-Henrik Haukeland |
Subject: |
Re: EXEC not working Help Help Help |
Date: |
Tue, 23 May 2006 08:45:12 +0200 |
On 23. mai. 2006, at 05.55, rushi wrote:
well the expected behaviour of the monit should be that it should
atleast
execute the script test.sh
the script is like this TEST.SH
I assume that TEST.SH contains this line here
/etc/rc.d/init.d/heartbeat stop
The reason this fails is that a script must begin with #! and the
remainder of the first line must specify an interpreter for the
program. E.g. #!/bin/sh. This is also mentioned in the manual. BTW
why not call the heartbeat script directly from exec?
--
Jan-Henrik Haukeland
smime.p7s
Description: S/MIME cryptographic signature