monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] Help getting monit to mount/unmount device


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'"





reply via email to

[Prev in Thread] Current Thread [Next in Thread]