LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-14-2005, 06:32 AM   #1
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Rep: Reputation: 30
My son is innocent!


I had been getting angry with my 2.5 year old son daily because I thought he was hitting the reset button on my slackbox. See, I work nights so his mother gets up with him in the morning... but when she gets up, she's been falling asleep on the couch! So he gets to run around and do whatever he wants until she or I get up.

The slackbox was being reset literally daily. Each day, I cringed at the possibility of corrupt files. Each day, though, everything was fine. The first time he did this (I watched him flick off the power bar,) I lost everything, which is why I've been frustrated with these daily occurances.

So I was up with him instead, and even before anyone could touch the box, I noticed it had been reset. It just sits there at a login prompt ready for use. It always has messages about a bad filesystem getting fixed up (if I do a regular "shutdown -r now", I don't get the bad filesystem messages, so I know it is being reset incorrectly somehow.)

How can I found out what is causing my system to reset every day like this (in the middle of the night, apparently, since it's fine before I go to bed.) Is there a process? Is there some key-combo other than CTRL+ALT+DEL that my cat might be stepping on. Even if there was, I leave the box completely logged out before I go to bed (I just leave it on so all my servers can run.) I know the cat can't push the reset button.

Any insight would be appreciated. Thanks.
 
Old 11-14-2005, 06:45 AM   #2
meranto
LQ Newbie
 
Registered: Nov 2005
Posts: 20

Rep: Reputation: 0
Maybe you got hardware problems that cause a reboot?
 
Old 11-14-2005, 07:02 AM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Check the logs, see if it's happening at the same time every night and what is happening right before the reset.
 
Old 11-14-2005, 07:27 AM   #4
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
What logs do I check?
 
Old 11-14-2005, 08:59 AM   #5
sweetnsourbkr
Member
 
Registered: Aug 2005
Location: Bay
Distribution: Zenwalk, OpenBSD, Slackware
Posts: 167

Rep: Reputation: 30
last
 
Old 11-14-2005, 10:16 AM   #6
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
if by "last" you mean /var/log/lastlog, that just contains a bunch of ^ and @ symbols. could you be more specific?
 
Old 11-14-2005, 11:03 AM   #7
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
Check /var/log/dmesg and /var/log/messages. Also, do you have any cron jobs scheduled to run at night?
 
Old 11-14-2005, 11:16 AM   #8
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
I'm not really sure what to make of dmesg and messages in /var/log. There is a lot to go through in them, and I'm not advanced with linux yet. As far as cron goes, I think what you're looking for us /etc/cron.daily? If so, the only thing in that directory is a script called slocate which runs "/usr/bin/updatedb -c" and another script called logrotate which runs "/usr/sbin/logrotate /etc/logrotate.conf"
 
Old 11-14-2005, 02:20 PM   #9
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
I'm with meranto. Sounds like a possible hardware issue. It sounds like you keep it running all the time (or try to anyway). What's the ventilation like around the box and what measures do you take to reduce heat inside the box?
 
Old 11-14-2005, 03:54 PM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
My server started to do spontaneous reboots - every once in a while, and I did not take it too seriously... but then the period between two reboots became shorter... and shorter... now rebooting every day... and even faster... up to the dreaded situation where it would reboot again before the computer had a chance to reach the command prompt.
That was the moment I decided that the hardware was wasted and I swapped it for the spare server I had been building in anticipation of this.

So yeah... most probably you've got a hardware problem :-)

On the other hand, I once had a situation where a server would reboot exactly once a week, at the same time. Nothing wrong with the server hardware...
Turned out that the UPS it was connected to performed a "self-test" once a week, thereby cutting power to the attached computers for just a tiny fraction of a second. All computers but one managed to keep running!

Eric
 
Old 11-14-2005, 08:48 PM   #11
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
I suppose it's possible that there is a hardware problem... but rebooting in the same time-frame every day? I just got home from work, and the PC is fine. It's been on all day. It only happens overnight. Is there a way I can check what time it is rebooting?

I think I'll reboot it before I go to bed tonight. If it's been on all day without rebooting, it can sure withstand 8 hours overnight after a fresh reboot.

I'm confused by the comment about me trying to keep it running all day... isn't keeping it running all day a good thing? It runs servers... :\
 
Old 11-14-2005, 10:35 PM   #12
zzak
LQ Newbie
 
Registered: Dec 2003
Location: Canada
Posts: 19

Rep: Reputation: 0
You could try the following:
As root, at the command prompt, enter:
grep -e "Nov 14" /var/log/messages > /home/user/test

What this means is this:
You are looking for an expression "Nov 14" in the file "messages"
which is located in the /var/log/ directory.

The ">" means you are sending the result of your search to
the "test" file located in /home/user.

Next, you would need Midnight Commander to do the following:
Open mc (Midnight Commander), then navigate down /home/user until
you highlight the file "test".
Click F3 to view the file.
When viewing, click F7 to bring up the search tool.
Enter "restart" in the search field, and then choose OK
The word "restart" will be highlighted. This will tell you
the time that the computer was restarted on Nov. 14
Repeat F7 and the search will take you to the second instance
of your computer restarting.
Repeat until all restart times have been shown.

Instead of "test" you could name the file Nov14.
Do the same for Nov. 13 etc.
 
Old 11-14-2005, 11:41 PM   #13
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
I would also gues hardware issue (not much help, huh? )

I also think the logs may be helpful. If you are having trouble knowing what to look for in the logs, they aren't doing much good. "mv" them to some other name before bed. Then, when you wake up and see that the server has rebooted, the logs have "mostly" useful info. Alternatively, you can "echo" in a distinctive mark (in combination with ">>") before you go to bed. The issue will clearly occur after the mark.
 
Old 11-15-2005, 12:00 AM   #14
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Rep: Reputation: 30
Quote:
Originally posted by Seiken
if by "last" you mean /var/log/lastlog, that just contains a bunch of ^ and @ symbols. could you be more specific?
By 'last' he actually means...

Code:
#last
It's a command... it displays the last logins, and reboots...
 
Old 11-15-2005, 01:12 AM   #15
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
Re: My son is innocent!

Quote:
Originally posted by Seiken
I had been getting angry with my 2.5 year old son daily because I thought he was hitting the reset button on my slackbox. See, I work nights so his mother gets up with him in the morning... but when she gets up, she's been falling asleep on the couch! So he gets to run around and do whatever he wants until she or I get up.

The slackbox was being reset literally daily. Each day, I cringed at the possibility of corrupt files. Each day, though, everything was fine. The first time he did this (I watched him flick off the power bar,) I lost everything, which is why I've been frustrated with these daily occurances.
[...]
Any insight would be appreciated. Thanks.
You could wait until an upgrade of the kid is available. I did this, and the current version of my son (he's at v. 17.4 now) is no longer goofing things up on my computer. In fact, he helps fix it. When my kid was at v. 2.x and even v. 3.x, however, I had a lot of problems of the type you describe.

I should warn you, though, that there are other bugs that have been introduced with the more recent versions. Still, I'm generally happy with this app.

Last edited by dhave; 11-15-2005 at 04:42 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Son and I are now Slackers - wife next? mikieboy LinuxQuestions.org Member Success Stories 3 11-16-2005 06:05 PM
fork and multiple son processes biiiep Programming 4 05-11-2005 11:00 AM
User beware VL bans innocent people galen VectorLinux 1 03-07-2004 12:15 PM
How to tell if your son is a hacker - Complete Bull$hit!!! 2kool General 22 05-06-2002 04:45 AM
answer waiting for son barbanero Programming 0 01-29-2002 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration