<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7997313029981170997.post8765165283582081998..comments</id><updated>2010-05-10T00:09:58.406-04:00</updated><category term='mobile'/><category term='Fedora'/><category term='postgres'/><category term='tools'/><category term='sysadmin'/><category term='pentaho'/><category term='community'/><category term='hosting'/><category term='analytics'/><category term='SELinux'/><category term='perl data-structures json'/><category term='redhat'/><category term='audio'/><category term='travel'/><category term='css'/><category term='git'/><category term='tips'/><category term='nginx'/><category term='Spree'/><category term='cakephp'/><category term='email'/><category term='nosql'/><category term='social-networking'/><category term='unicode'/><category term='performance'/><category term='piggybak'/><category term='eye-candy'/><category term='reporting'/><category term='thrift'/><category term='facebook'/><category term='visualization'/><category term='openbsd'/><category term='mysql'/><category term='scalability'/><category term='riak'/><category term='security'/><category term='CentOS'/><category term='graphics'/><category term='cucumber'/><category term='rvm'/><category term='cloud'/><category term='django'/><category term='remote-work'/><category term='networking'/><category term='wordpress'/><category term='perlbrew'/><category term='optimization'/><category term='book review'/><category term='dropbox'/><category term='sinatra'/><category term='design'/><category term='mp3'/><category term='ruby-and-ruby-on-rails'/><category term='testing'/><category term='open-source'/><category term='json'/><category term='ruby'/><category term='yui'/><category term='virtualization'/><category term='COTS'/><category term='Camps'/><category term='javascript'/><category term='workflow'/><category term='sponsorship'/><category term='perl'/><category term='messaging'/><category term='environment'/><category term='gnu'/><category term='lua'/><category term='rpm'/><category term='browsers'/><category term='configuration-management'/><category term='python'/><category term='ecommerce'/><category term='Conference'/><category term='voldemort'/><category term='image'/><category term='jasper'/><category term='clients'/><category term='dbdpg'/><category term='Android'/><category term='database'/><category term='version-control'/><category term='linux'/><category term='USPS'/><category term='data-warehouse'/><category term='openafs'/><category term='cassandra'/><category term='mondaylinks'/><category term='php'/><category term='Debian'/><category term='monitoring'/><category term='liquid-galaxy'/><category term='audit'/><category term='Bucardo'/><category term='Java'/><category term='mongodb'/><category term='API'/><category term='seo'/><category term='SeniorNet'/><category term='company'/><category term='jquery'/><category term='jobs'/><category term='sql'/><category term='search'/><category term='Ubuntu'/><category term='Interchange'/><category term='caching'/><category term='ipv6'/><title type='text'>Comments on End Point Blog: Starting processes at boot under SELinux</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.endpoint.com/feeds/8765165283582081998/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8765165283582081998/comments/default'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/09/starting-processes-at-boot-under.html'/><author><name>Jon Jensen</name><uri>http://www.blogger.com/profile/18273388885281263476</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://bp3.blogger.com/_rFXHDrokbpE/SJHpPosaIQI/AAAAAAAAAAM/GnqeZuLItOA/S220/jon1.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-8595479021676493077</id><published>2009-09-08T11:24:08.461-04:00</published><updated>2009-09-08T11:24:08.461-04:00</updated><title type='text'>Carl, good point. The case I was describing involv...</title><content type='html'>Carl, good point. The case I was describing involved only one user&amp;#39;s crontab, so there was no difference. But if there were many crontabs under different users and they really did all fire at the same time, you&amp;#39;re right that that&amp;#39;d bog things down.&lt;br /&gt;&lt;br /&gt;Locking across different users would require coordinating the file name and ownership of the lock file, and as you note, some retrying.&lt;br /&gt;&lt;br /&gt;Perhaps a simpler way would be in bash to sleep $(( $RANDOM / 1000 )) before starting a process, which would pause for 0-32 seconds randomly and should give breathing room.&lt;br /&gt;&lt;br /&gt;Either way there&amp;#39;s no escaping that a sysadmin needs to take a high-level view of what&amp;#39;s going on at reboot time, so thanks for pointing that out.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8765165283582081998/comments/default/8595479021676493077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8765165283582081998/comments/default/8595479021676493077'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/09/starting-processes-at-boot-under.html?showComment=1252423448461#c8595479021676493077' title=''/><author><name>Jon Jensen</name><uri>http://www.blogger.com/profile/18273388885281263476</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://bp3.blogger.com/_rFXHDrokbpE/SJHpPosaIQI/AAAAAAAAAAM/GnqeZuLItOA/S220/jon1.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/09/starting-processes-at-boot-under.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8765165283582081998' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8765165283582081998' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-932649491'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-8728905045327311302</id><published>2009-09-08T11:09:16.259-04:00</published><updated>2009-09-08T11:09:16.259-04:00</updated><title type='text'>From what I understand, the problem with @reboot c...</title><content type='html'>From what I understand, the problem with @reboot cron entries is that they all fire at once, so that, for example, with the recent reboots of some of our in-house servers, many of the accounts firing up intensive daemon processes at the same time put quite a load on the servers.  Ideally, one should use some kind of Highlander (&amp;quot;there can only be one!&amp;quot;) mechanism to work around this issue.  In perl I have done this by attempting to get a non-blocking exclusive lock on a file with flock, then executing my highlander code, finally releasing the lock.  If an exclusive lock can not be obtained, sleep for a random number of seconds, then try again.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8765165283582081998/comments/default/8728905045327311302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8765165283582081998/comments/default/8728905045327311302'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/09/starting-processes-at-boot-under.html?showComment=1252422556259#c8728905045327311302' title=''/><author><name>carl</name><uri>http://www.blogger.com/profile/12480644070503701363</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00888828452314827487'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/09/starting-processes-at-boot-under.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8765165283582081998' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8765165283582081998' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1837586953'/></entry></feed>
