Pokazywanie postów oznaczonych etykietą restart. Pokaż wszystkie posty
Pokazywanie postów oznaczonych etykietą restart. Pokaż wszystkie posty

środa, 17 października 2012

What to do when your system crashes in XP mode (in hibernation or during shutdown, system reboot)?


What to do when your system crashes in XP mode (in hibernation or during shutdown, system reboot)?

This is a fairly common problem. Microsoft in his goodness in general, trying to hide advanced options against inexperienced users.

Sometimes this can cause a variety of problems. For example, if your virtual machine crashes during hibernation / shutdown, is hardly what we can do with it. We can't restart our virtual computer because our virtual machine is simply a file.

After restarting the file is still saved, the system is being shut down and hibernate;)

So our virtual machine is suspended. In your virtual machine menu when you, select Action> close than by default, without any additional questions, our machine hibernates ;).


But our virtual machine is already suspended, so how to switch of XP Mode machine?. Of course, closing with a cross or "Close" does not give us anything.

We need to change the default settings for your virtual machine:

- In Windows "Start" menu go to Windows Virtual PC>Windows Virtual PC and select the file of your virtual machine by pressing the right mouse button on it.

- Select "Settings" and go to "Close". Select "prompt for action", click ok
Now, when you click close button you should see prompt for action, for example "power off" ;)

środa, 5 października 2011

Apache restart using crontab

If you have problem with your Apache server (for example when your server hang from time to time)this may be associated with too many apache processes. If the server crashes from time to time it is a hassle for you and your Customer.
You can add RAM to your server, but not sure if this will solve the problem.
A better method is to add the crontab job that will restart the Apache process (You should also upgrade your Apache version).
Download Video Tutorial
Let's start:
- login as root to your apache server (you can use ssh, direct access, webmin etc.)
- type crontab -e to edit crontab
That will put you in the Vi editor editing your crontab. The Vi keystrokes you need to edit your crontab are: "i" for insert (or insert key), then type out your cron line following the format below , then press the "escape" key on your keyboard to get out of insert mode, then ":" to get a prompt, then "wq" and then "enter" and it is saved.
- in the last line type
5 0 * * * /etc/init.d/httpd restart >/dell/null 2>&1
Run at 5 minutes after midnight, every day (restart apache)
- save crontab esc : wq! and exit
it's all
ps. if you start Apache using then type in crontab
5 0 * * * /usr/local/apache/bin/apachectl restart
or 5 0 * * * /usr/sbin/apachectl restart