The delay isn't optimal for me, as it is a non-deterministic time that I have to deal with, and boot time is of importance. thanks.

On 2/6/15 9:56 AM, Sean Penticoff wrote:
you can set a delay for startup in monit

## Start Monit in the background (run as a daemon):
#
set daemon  120              # check services at 1-minute intervals
with start delay 240 # optional: delay the first check by 4-minutes (by


we have a service that runs on first boot that does stuff like updates and time sync and it disables itself as a last step so you could do something like that.

</etc/init.d/myfirstboot>
#!/bin/bash
# myfirstboot updates then reboots
# chkconfig: 2345 11 20
# description: long description

case "$1" in
  start)
    /bin/puppet agent -t
    /bin/yum -y update
    /sbin/ntpdate -u time.nist.gov
    /sbin/chkconfig myfirstboot off
    /sbin/reboot
  ;;
  stop|status|restart|reload|force-reload)
    # do nothing
  ;;
esac


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to