- From: Joshua Timberman <
>
- To:
- Subject: [chef] Re: Re: Chef-Solr logrotate issues
- Date: Mon, 23 Aug 2010 18:24:48 -0600
Hello!
On Aug 23, 2010, at 3:47 AM, Jon Wood wrote:
>
Yup, I'm looking into it at the moment. It looks like it's actually a
>
bug in chef-solr's init script, probably due to this:
>
>
restart|force-reload)
>
log_daemon_msg "Restarting $DESC" "$NAME"
>
errcode=0
>
stop_server || errcode=$?
>
[ -n "$DIETIME" ] && sleep $DIETIME
>
start_server || errcode=$?
>
[ -n "$STARTTIME" ] && sleep $STARTTIME
>
running || errcode=$?
>
log_end_msg $errcode
>
;;
>
>
I have a feeling $DIETIME is too short, but I've not been able to
>
track down where it's defined yet.
$DIETIME and $STARTTIME aren't defined anywhere. You can add them to
/etc/default/chef-solr and /etc/default/chef-solr-indexer to have the init
scripts utilize the sleep to give the process time to stop or start.
That said, I'm updating the scripts, and the chef-server init scripts as
well, with ticket CHEF-1614
http://tickets.opscode.com/browse/CHEF-1614
Thanks!
--
Opscode, Inc
Joshua Timberman, Technical Evangelist
C: 720.334.RUBY E:
Archive powered by MHonArc 2.6.16.