Motherboard Forums


Reply
Thread Tools Display Modes

Re: launchd, periodic scripts, and a powered-down Mac

 
 





















David Empson
Guest
Posts: n/a

 
      10-30-2009, 12:15 AM


BakersT <> wrote:

> On 10.4.11 : I had been using 'Anacron' for a long time before seeing
> something to the effect that 10.4.8 included a change that would allow
> launchd to "catch up" to periodic scripts that didn't run because the
> system was down (or maybe just sleeping?) at the appointed time.


That would be consistent with my observations on 10.5 and later. If the
computer is sleeping when launchd is scheduled to run something, it
catches up after the computer wakes up.

launchd does not run anything which was missed due to the computer being
shut down at the scheduled time.

> I've removed Anacron, and "sudo launchctl list" shows that the
> daily/monthly/weekly scripts are scheduled, but they're not executing. Is
> that 'cuz my machine is normally powered-down (not just sleeping) when
> they're scheduled to run (default times, between 01:00 and 03:00 IIRC)?


Yes.

> Should I return to Anacron, or am I missing something? (And yes, I -do-
> want to power-down each evening, and I'd prefer not to have to remember to
> manually run the maintenance scripts.) Cheers...


Anacron would be one solution.

Personally, I'm perfectly happy to let my computers sleep overnight.
Modern Macs use very little power when asleep. They use less when shut
down, but it is still not zero.

--
David Empson

 
Reply With Quote
 
nospam
Guest
Posts: n/a

 
      10-30-2009, 12:33 AM
In article <1j8eexm.1lt4vknxlkpvvN%>, David Empson
<> wrote:

> Modern Macs use very little power when asleep. They use less when shut
> down, but it is still not zero.


the difference is negligible.
 
Reply With Quote
 
David Empson
Guest
Posts: n/a

 
      10-30-2009, 01:34 AM
nospam <> wrote:

> In article <1j8eexm.1lt4vknxlkpvvN%>, David Empson
> <> wrote:
>
> > Modern Macs use very little power when asleep. They use less when shut
> > down, but it is still not zero.

>
> the difference is negligible.


Indeed. When I measured a mid 2007 iMac, it used about 2.5W sleeping,
1.5W shut down.

My older PowerMac G4 QuickSilver 2002 wasn't that good: about 13W
sleeping, 6W shut down.
--
David Empson

 
Reply With Quote
 
Richard Maine
Guest
Posts: n/a

 
      10-30-2009, 03:17 AM
David Empson <> wrote:

> nospam <> wrote:
>
> > In article <1j8eexm.1lt4vknxlkpvvN%>, David Empson
> > <> wrote:
> >
> > > Modern Macs use very little power when asleep. They use less when shut
> > > down, but it is still not zero.

> >
> > the difference is negligible.

>
> Indeed. When I measured a mid 2007 iMac, it used about 2.5W sleeping,
> 1.5W shut down.
>
> My older PowerMac G4 QuickSilver 2002 wasn't that good: about 13W
> sleeping, 6W shut down.


I measured my late 2006 24" iMac at 5W sleeping, 4W off.

A Windows/Linux box of slightly older vintage custom built from
components I measured at 13W off, but my notes say 6W of that was the
speakers.

I haven't gotten around to measuring this new 27" iMac, but Apple claims
1.75W asleep, 0.83W off.

Hmm. I think I see a pattern for the Macs here. Looks like sleeping adds
about a watt compared to off.

--
Richard Maine | Good judgment comes from experience;
email: last name at domain . net | experience comes from bad judgment.
domain: summertriangle | -- Mark Twain
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron to Launchd migration not working John Drako Apple 3 02-28-2008 03:09 PM
launchd and Tomcat Tom Davies Apple 1 02-11-2006 05:00 PM
Periodic daily broken in Tiger? Jim Jennings Apple 7 06-09-2005 01:13 PM
Re: periodic command for system cleanup -- question Chris Moore Apple 2 01-28-2005 05:27 PM
Panther: Periodic Scripts Question Ken Prager Apple 6 11-10-2003 12:42 AM


All times are GMT. The time now is 07:39 AM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43