[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Before I fix this
From: |
Sean Penticoff |
Subject: |
Re: Before I fix this |
Date: |
Fri, 06 Feb 2015 09:56:04 -0800 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
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
- Re: Before I fix this,
Sean Penticoff <=