Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i wanted to connect to my headless (no screen etc) linux box, but vncserver wasn't runnning. Going through the logs i found out the system started up new (dunno if reboot or something else) 2 days ago.
Now this already happened some time ago, but i didn't give it much of a thought.
But since it seems to happen more frequently I want to know whats causing this.
Its an debian squeeze box running xen4.0 with an windows vm. I also have a apc smartups1400 connected and i'm monitoring it with apcupsd.
Now apcupsd log is clean, and the xend.log just shows the start of the xen deamon on the time the system started up again.
How to find out if some program or whatever sended a reboot command?
Or if its some PC problem (i know xen has problems with some mainboard bios etc) and the pc sometimes just suddenly reboots, is there any way to see wether the system shutted down before the reboot or just suddenly started again?
If there's nothing logged, then it's extremely unlikely it was told to reboot. Possibilities in order of likelihood:
1) Hardware problem causing spontaneous reboot.
2) Security issue; buggy root kit, or someone with physical access.
3) Genuine kernel/driver bug/regression (pretty unlikely since you say it's Debian, but stranger things have happened).
Assuming you have no real computer diagnostic equipment, I would start with booting a live CD/DVD/USB stick and do some load testing. See if you can't get it to spontaneously reboot in front of you. Assuming this system was stable at one point, and you haven't just done a kernel/driver update, etc, I would say the most likely culprit is the power supply or RAM. If you suspect the former, some places will test your power supply for free. If you suspect it's the RAM, you should be able to verify this by running memtest86+ for an extended period, and then use trial and error to identify which stick is acting up.
The pseudo user reboot logs in each time the system is told to reboot. You will see a reboot line when you use the 'last' command (or simply type 'last reboot' to see only the reboots).
If there's nothing logged, then it's extremely unlikely it was told to reboot. Possibilities in order of likelihood:
1) Hardware problem causing spontaneous reboot.
Assuming this system was stable at one point, and you haven't just done a kernel/driver update, etc, I would say the most likely culprit is the power supply or RAM. If you suspect the former, some places will test your power supply for free. If you suspect it's the RAM, you should be able to verify this by running memtest86+ for an extended period, and then use trial and error to identify which stick is acting up.
Indeed this is a possibility I probably should have mentioned, however in most instances where the CPU is overheating, the BIOS should be shutting the computer off, not restarting it. It might be right on the edge, and/or the BIOS doesn't have the best defaults for making sure his specific CPU stays stable, but if this were the case, most likely he would notice the pattern of CPU load causing it to reboot.
It's always a good idea to use something to monitor your hardware sensors, especially when you're thinking about availability with things such as a UPS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.