Set the date automatically after VM unpauses

I’ve got virtual machines (with Debian or occasionally *buntu guests, GNU/Linux) running in libvirt/qemu/kvm, and I have discovered the feature to pause/unpause a VM. After unpausing (virsh resume), the guest clock is, obviously, off. How can I trigger a call to, say, /usr/sbin/rdate when the VM unpauses to do a one-shot update (openntpd will do … Read more

Drupal Commons using sendmail with Gmail SMTP smart host: Account suspended for abuse

I have a Linux VPS with two Drupal sites, one of them using Drupal Commons. Both installations are told to send mail via sendmail, which in turn is configured to relay mail to the Gmail SMTP server (via the smart host directive). Two different accounts, on two different (free) Google Apps domains are used to … Read more

CentOS 7, how to prevent any process from suspending my server?

I have a server running CentOS 7 with Gui. It should be running 24×7 but it keeps suspending itself after a few days of inactivity. “Automatic suspend” is already set to “off” The computer is only connected to a local network. The only third party process I am running is a license server. I inspected … Read more

Windows command line “suspend”

On Windows, there’s the shutdown cmd line, but is there a windows command line command to call a “standby”? What I’d really like is to call something like standby -force to force a system to enter standby even when a pesky app is trying to prevent it. Answer rundll32.exe powrprof.dll,SetSuspendState The action will differ depending … Read more

Why is /proc/meminfo reporting misleading SwapTotal after suspends

Consider this: [skrat@apex geri]$ cat /proc/meminfo | grep SwapTotal SwapTotal: 18438120 kB [skrat@apex geri]$ swapon -s Filename Type Size Used Priority /dev/mmcblk0p2 (deleted) partition 3073020 0 10 /dev/mmcblk0p2 (deleted) partition 3073020 0 10 /dev/mmcblk0p2 (deleted) partition 3073020 0 10 /dev/mmcblk0p2 (deleted) partition 3073020 0 10 /dev/mmcblk0p2 (deleted) partition 3073020 0 10 /dev/mmcblk0p2 partition 3073020 583196 … Read more

I got some message about suspended site, which I have to debug, how do I proceed? [duplicate]

This question already has answers here: Closed 9 years ago. Possible Duplicate: My server’s been hacked EMERGENCY The hosting company supplied an email to its client and the client wanted some help from me. the message states: Any items listed here which are folders named with 5 to 7 random letters are are likely FTP … Read more