Re: Running scheduled bash script with bosh.


Dmitriy Kalinin
 

I would recommend using cron for this. Have your ctl script add it to the
crontab when it's started and remove it when it stopped.

Regarding monit: we are planning to upgrade it once more (
https://github.com/cloudfoundry/bosh/pull/743) but I would not recommend
relying on its features. eventually we will replace it with a simpler job
supervisor.

On Tue, Aug 11, 2015 at 6:54 PM, Dr Nic Williams <drnicwilliams(a)gmail.com>
wrote:

You could try building a new stemcell with an upgraded monit.

On Tue, Aug 11, 2015 at 6:26 PM, Gwenn Etourneau <getourneau(a)pivotal.io>
wrote:

Hi,
I am curious about what do you try to achieve by running bash script with
bosh ?

Thanks

On Wed, Aug 12, 2015 at 3:56 AM, Alan Moran <moranalan90(a)gmail.com>
wrote:



Hello,
We have been working to try and run a bash script at a specified
interval with bosh. Our initial approach was to create a job and use the
“check program” feature within Monit. However, this requires Monit 5.3+
[1,2]. The version of Monit included in Stemcell is 5.2.4.

This makes us ask a couple of questions:

1- Is there a reason Monit is not being updated?
2- Is there an alternative approach that we can take besides using
“check program”?

Links:
1-
https://lists.nongnu.org/archive/html/monit-general/2013-06/msg00063.html
2-
http://lists.nongnu.org/archive/html/monit-general/2011-09/msg00018.html

Thanks,

David Brock && Alan Morán



--
Dr Nic Williams
Stark & Wayne LLC - consultancy for Cloud Foundry users
http://drnicwilliams.com
http://starkandwayne.com
cell +1 (415) 860-2185
twitter @drnic

Join cf-bosh@lists.cloudfoundry.org to automatically receive all group messages.