Find the answer to your Linux question:
Results 1 to 4 of 4
Having a problem where shutdown -t 0 now does not shutdown, but ultimately causes an application to run. I suspect there's something bogus in one of the myriad of rc.d ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    6

    Unhappy How do I debug a shutdown problem?

    Having a problem where shutdown -t 0 now does not shutdown, but ultimately causes an application to run. I suspect there's something bogus in one of the myriad of rc.d shutdown scripts. Isn't there SOME way to turn on some logging so that I can see how far it is getting through the scripts? Seems kinda nuts there is no way to track shutdown progress...


    --

    Zinc

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Try.....
    Code:
    shutdown -h now
    or
    shutdown -r now
    You don't need '-t 0'

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Feb 2009
    Posts
    6
    I KNOW I don't need '-t 0' the point is, none of the above, including either of your suggestions actually shut down. What they do is startup an application program instead. What I need to know is WHY, and what shutdown script is causing it if it is in fact a bogus shutdown script, as I suspect it is. But I don't know how to determine how far it gets through the shutdown scripts before it stops shutting down. What's needed is some kind of LOGGING that can be turned on to indicate what shutdown script it is about to run or has just run. I suppose I could edit all the shutdown scripts to add logging info, but silly me, I thought there might actually be some useful logging or debug technique for shutdown scripts in general that I could enable somehow...

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Look in /etc/rc.d/rc6.d and make sure all scripts are set to kill/stop.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...