ts-7000
[Top] [All Lists]

[ts-7000] Re: TS-BAT3 Proper Shutdown

To:
Subject: [ts-7000] Re: TS-BAT3 Proper Shutdown
From: "PeterElliot" <>
Date: Tue, 08 May 2007 21:07:22 -0000
Hi Mike,

When I halt the ups-monitor is performed much later after the
filesystems have all closed. Where did you place the ups-monitor
poweroff within the shudown scripts? I'm not too familiar with Linux,
so I don't know if I've missed the shutdown -h case, but I placed the
ups-monitor poweroff in the halt script.

I'm looking to modify the bat3 program to add an additional command
to remove the need to kill the bat3 program prior to running ups-
monitor, but this - as you state - would need to delay before
powering off in a full boot condition.

I've been working with Michael at Technologic Systems whose been very
helpfull getting me through the errors located between my chair and
the keyboard...

Regards,

PJE


--- In  "machv0" <> wrote:
>
> Thanks Peter for the reply.
>
> That confirms what I am experiencing and like I said before, it
seems
> fine to prematurely halt as long we clean up as much as we can
before
> hand. I don't suppose you know if there is a way to tell the AVR on
> the bat3 to toggle JP3, but only after some delay? That would give
the
> halt script a chance to complete successfully before power is cut.
On
> the other hand there is no guarantee so I suppose it may not be much
> better.
>
> Just out of interest, here's a cut and paste from a manual "shutdown
> -h now" on my board that illustrates what happens when ups-monitor
is
> called prior to "halt" in the halt script. Unfortunately the SIGKILL
> isn't processed right away, thus the confusion. Note, I believe the
> "thÿ" is a console problem that really should say "the KILL signal",
> at least that's what it says on my dev box. If someone from
> Technologic is listening in perhaps they could chime in as the
> instructions for the BAT3 seem to suggest that it should work in
this
> setup, but it clearly does not for me without manual intervention.
> Maybe those steps are implied but since I'm a bit of Linux n00b it
> just wasn't clear to me.
>
> shutdown -h now
> INIT: Switching to runlevel: 0
> INIT: Sending processes the TERM signal
> INIT: Sending processes thÿ
>
> ups-monitor here
>
> The system is going down NOW !!
> Sending SIGTERM to all processes.
> INIT: no more processes left in this runlevel
> Sending SIGKILL to all processes.
> flushing ide devices: hda
> System halted.
>
>





Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
    
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU