The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

PPPd by i_am_pi2002-10-14 07:05:46
  ip-down.d runs by mirage2002-10-14 07:11:17
    Hm.. by i_am_pi2002-10-14 07:16:14
      Try "diald" by Aquacooler2002-10-14 07:26:22
        Oops! Did you say "Shutdown"? by Aquacooler2002-10-14 07:42:59
          Well shutting down involves killing the PPP by i_am_pi2002-10-14 07:50:37
            But the shutdown sequence could kill it by aquacooler 2002-10-14 13:01:39
As i said, it depends on how long your program runs.

I had this effect on my previous system. The link was up, i issued a shutdown or reboot, the link started to go down (diald got SIGTERM), the mail-exchange-script started and got shot down (including pppd) by "Sending KILL to all processes" (by init).

I dont know of any way to keep Linux from shutting down for a moment, except when doing it in a K-script. Maybe you could have a K-script that checks if /var/lock/pppd.lock exists, execute your program, wait for it to finish (for example do a sync afterwards to be sure) and then quit, giving shutdown-control back to Linux which will kill the pppd. But this _could_ cause a hangup during shutdown or an undisconnected modem...

Aquacooler

PS: K-script: script in /etc/init.d/rc[1-5].d starting with "K" (K01something). I know SuSE, your milage may vary...
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)