|
From: | Jan-Henrik Haukeland |
Subject: | Re: [monit] Help getting monit to mount/unmount device |
Date: | Tue, 26 May 2009 04:27:13 +0200 |
On 26. mai. 2009, at 00.20, Alex Soto wrote:
start program = "/bin/mkdir -p /data/db ; /bin/sleep 5 ; /bin/ mount /data/db"
The start program is not run in a shell, but by exec. To write the start program as a shell script you need to invoke a shell like so:
start program = "/bin/bash -c '/bin/mkdir -p /data/db ; /bin/ mount /data/db'"
[Prev in Thread] | Current Thread | [Next in Thread] |