|
From: | Jan-Henrik Haukeland |
Subject: | Re: [monit] Monit won't start any process. Please help. |
Date: | Tue, 02 Dec 2008 20:00:20 +0100 |
On 2. des.. 2008, at 14.43, olo wrote:
start program = "/usr/bin/imwheel -k -X :0.0; /bin/pidof imwheel > /tmp/imwheel.pid"
You cannot write a shell script as the start or stop program. A program with arguments is expected here. However you can wrap it in a shell like so:
start program = "/bin/bash -c '/usr/bin/imwheel -k -X :0.0; /bin/pidof imwheel > /tmp/imwheel.pid'"
[Prev in Thread] | Current Thread | [Next in Thread] |