monit-general
[Top][All Lists]
Advanced

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

RE: Monit does not start flxlm


From: Hearns, John
Subject: RE: Monit does not start flxlm
Date: Tue, 3 Sep 2013 17:14:08 +0000




Hi,

monit runs the start/stop programs in a sandbox and strips all environment variables (for security reasons) - it sets only the spartan path: "PATH=/bin:/usr/bin:/sbin:/usr/sbin"

If your script depends on some environment variable, it may fail when executed by monit. You can log the script output by wrapping it like this:

start program = "/bin/bash -c '/sbin/service flexlm start >> /tmp/flexlm_start.log 2>&1'"

You can also pass the variables in the bash command or create some wrapper which will set the variables and call start.



Martin, thankyou very much for that.
I was not aware that the start script needed any environment variables - it should set them internally.
Perhaps it does though.


The contents of this e-mail are confidential and for the exclusive use of the intended recipient. If you are not the intended recipient you should not read, copy, retransmit or disclose its contents. If you have received this email in error please delete it from your system immediately and notify us either by email or telephone. The views expressed in this communication may not necessarily be the views held by McLaren Racing Limited.
McLaren Racing Limited | McLaren Technology Centre | Chertsey Road | Woking | Surrey | GU21 4YH | UK | Company Number: 01517478
reply via email to

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