<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: launchd vs periodic</title>
	<atom:link href="http://managingosx.wordpress.com/2008/06/18/launchd-vs-periodic/feed/" rel="self" type="application/rss+xml" />
	<link>http://managingosx.wordpress.com/2008/06/18/launchd-vs-periodic/</link>
	<description>Trials and Tribulations of an OS X Administrator</description>
	<lastBuildDate>Thu, 24 Dec 2009 15:11:20 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Thomas A. Fine</title>
		<link>http://managingosx.wordpress.com/2008/06/18/launchd-vs-periodic/#comment-9727</link>
		<dc:creator>Thomas A. Fine</dc:creator>
		<pubDate>Tue, 16 Dec 2008 04:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://managingosx.wordpress.com/?p=129#comment-9727</guid>
		<description>Hey,

Have you done anything with user-level cron jobs, or user-level LaunchAgents?  For network NIS users we find that cron jobs don&#039;t run after reboot, presumably because cron did it&#039;s initial checks before ypbind ran.  And since our users are on NFS-mounted homes, I can&#039;t imagine that user-level launch agents would  work at all after a reboot, although I admit I haven&#039;t tried it yet.  Not that I would find that a suitable replacement for users anyway...

I&#039;m trying to come up with a fix (like a system launch agent that waits for NIS, and then nudges cron), but was wondering if you&#039;d already dealt with this.

tom</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>Have you done anything with user-level cron jobs, or user-level LaunchAgents?  For network NIS users we find that cron jobs don&#8217;t run after reboot, presumably because cron did it&#8217;s initial checks before ypbind ran.  And since our users are on NFS-mounted homes, I can&#8217;t imagine that user-level launch agents would  work at all after a reboot, although I admit I haven&#8217;t tried it yet.  Not that I would find that a suitable replacement for users anyway&#8230;</p>
<p>I&#8217;m trying to come up with a fix (like a system launch agent that waits for NIS, and then nudges cron), but was wondering if you&#8217;d already dealt with this.</p>
<p>tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: airdrummer</title>
		<link>http://managingosx.wordpress.com/2008/06/18/launchd-vs-periodic/#comment-9710</link>
		<dc:creator>airdrummer</dc:creator>
		<pubDate>Wed, 08 Oct 2008 14:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://managingosx.wordpress.com/?p=129#comment-9710</guid>
		<description>i&#039;ve also used anacron since b4 10.4...perhaps that&#039;s why the period tasks are being run 2x?</description>
		<content:encoded><![CDATA[<p>i&#8217;ve also used anacron since b4 10.4&#8230;perhaps that&#8217;s why the period tasks are being run 2x?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neuwalker</title>
		<link>http://managingosx.wordpress.com/2008/06/18/launchd-vs-periodic/#comment-9662</link>
		<dc:creator>neuwalker</dc:creator>
		<pubDate>Tue, 05 Aug 2008 20:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://managingosx.wordpress.com/?p=129#comment-9662</guid>
		<description>Thank you Greg, that&#039;s it. Someone – not sure if it was me – changed the /etc/periodic.conf to write output to daily.log on March 23rd, which was the date of the first output in that file.

So now I should change your script to look in the file you listed up to find the right log-file to observe.</description>
		<content:encoded><![CDATA[<p>Thank you Greg, that&#8217;s it. Someone – not sure if it was me – changed the /etc/periodic.conf to write output to daily.log on March 23rd, which was the date of the first output in that file.</p>
<p>So now I should change your script to look in the file you listed up to find the right log-file to observe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GregN</title>
		<link>http://managingosx.wordpress.com/2008/06/18/launchd-vs-periodic/#comment-9661</link>
		<dc:creator>GregN</dc:creator>
		<pubDate>Mon, 04 Aug 2008 15:41:35 +0000</pubDate>
		<guid isPermaLink="false">http://managingosx.wordpress.com/?p=129#comment-9661</guid>
		<description>Have you modified /etc/defaults/periodic.conf, /etc/periodic.conf, or /etc/periodic.conf.local ?

By default, the periodic logs are in /var/log/: daily.out, weekly.out, and monthly.out, but many things, including the logfile names can be modified by editing the .conf  files list above.  In fact, since /usr/sbin/periodic itself is just a shell script, it&#039;s pretty trivial to modify its behavior by modifying the shell script itself...

-Greg</description>
		<content:encoded><![CDATA[<p>Have you modified /etc/defaults/periodic.conf, /etc/periodic.conf, or /etc/periodic.conf.local ?</p>
<p>By default, the periodic logs are in /var/log/: daily.out, weekly.out, and monthly.out, but many things, including the logfile names can be modified by editing the .conf  files list above.  In fact, since /usr/sbin/periodic itself is just a shell script, it&#8217;s pretty trivial to modify its behavior by modifying the shell script itself&#8230;</p>
<p>-Greg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neuwalker</title>
		<link>http://managingosx.wordpress.com/2008/06/18/launchd-vs-periodic/#comment-9660</link>
		<dc:creator>neuwalker</dc:creator>
		<pubDate>Sun, 03 Aug 2008 22:36:23 +0000</pubDate>
		<guid isPermaLink="false">http://managingosx.wordpress.com/?p=129#comment-9660</guid>
		<description>Hi Greg,

I tried your script and called it via launchd at every startup (which often happens twice a day). Every single periodic script ran every time, until I found out, that my periodic scripts log to
/var/log/daily.log
/var/log/weekly.log
/var/log/monthly.log
but I have daily.out ect. too.

I changed your script and now it looks better. But what are the differences between both files and how can I change the log files?</description>
		<content:encoded><![CDATA[<p>Hi Greg,</p>
<p>I tried your script and called it via launchd at every startup (which often happens twice a day). Every single periodic script ran every time, until I found out, that my periodic scripts log to<br />
/var/log/daily.log<br />
/var/log/weekly.log<br />
/var/log/monthly.log<br />
but I have daily.out ect. too.</p>
<p>I changed your script and now it looks better. But what are the differences between both files and how can I change the log files?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GregN</title>
		<link>http://managingosx.wordpress.com/2008/06/18/launchd-vs-periodic/#comment-9622</link>
		<dc:creator>GregN</dc:creator>
		<pubDate>Wed, 18 Jun 2008 22:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://managingosx.wordpress.com/?p=129#comment-9622</guid>
		<description>If you read the man page for launchd.plist (specifically, the section on the StartInterval and StartCalendarInterval keys), it makes no claim that events missed while the machine is off will be run, so I&#039;m fairly confident that Apple would close it as &quot;behaves as designed&quot;.

I&#039;ll probably file it anyway...</description>
		<content:encoded><![CDATA[<p>If you read the man page for launchd.plist (specifically, the section on the StartInterval and StartCalendarInterval keys), it makes no claim that events missed while the machine is off will be run, so I&#8217;m fairly confident that Apple would close it as &#8220;behaves as designed&#8221;.</p>
<p>I&#8217;ll probably file it anyway&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bethany</title>
		<link>http://managingosx.wordpress.com/2008/06/18/launchd-vs-periodic/#comment-9621</link>
		<dc:creator>bethany</dc:creator>
		<pubDate>Wed, 18 Jun 2008 21:55:13 +0000</pubDate>
		<guid isPermaLink="false">http://managingosx.wordpress.com/?p=129#comment-9621</guid>
		<description>hi greg!  did you report this as a bug to apple?  do you guys have official apple support?</description>
		<content:encoded><![CDATA[<p>hi greg!  did you report this as a bug to apple?  do you guys have official apple support?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jan</title>
		<link>http://managingosx.wordpress.com/2008/06/18/launchd-vs-periodic/#comment-9619</link>
		<dc:creator>jan</dc:creator>
		<pubDate>Wed, 18 Jun 2008 19:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://managingosx.wordpress.com/?p=129#comment-9619</guid>
		<description>Nice one!
That&#039;s a pretty neat workaround.</description>
		<content:encoded><![CDATA[<p>Nice one!<br />
That&#8217;s a pretty neat workaround.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
