My solution to make WoL work after shutdown and suspend/hibernate was to create a script in /usr/lib/systemd/system-sleep/wol.sh:#!/bin/sh
# Setting WOL to Active
/usr/sbin/ethtool -s eth0 wol gDon't forget to make it executable!Since man 8 systemd-sleep considers this kind of solutions as hack, I also tried the following alternative code in /etc/systemd/system/wol@.service, however it didn&#
I have the following script, how do I run it on shutdown in debian linux? (don't want to use GUI)
#!/bin/bash
vms=$(vmrun list | grep '/');
for vm in ${vms}
do
echo 'suspending ' $vm
vmrun suspend $vm soft
done
I tried adding it to /usr/local/bin with chmod +x permissions.
Hello.
I am running Ubuntu Server x64 12.04. I have apcupsd properly running.
I need to make one of my scripts a start-up script and I want it to be executed in the following manner:
The script should be a start-up script.
When the script is executed, the machine should SHUTDOWN.
This image shows what I am trying to do:
How do I implement this in Ubuntu Linux?
I want to execute a simple command just before the computer shuts down (timing is not essential).
For startup I can use /etc/rc.local - is there something similar for shutdown?
Note that I would still like to use the integrated shutdown button from menu; i.e. I don't want to use a custom script everytime I shutdown via terminal - it needs to be automatical.
I want to call a script on machine shutdown and restart.
I have written code like
#!
I have the following bash script on debian with the LSB header:
### BEGIN INIT INFO
# Provides: shutdown_vms
# Required-Start:
# Required-Stop: gdm vmware $local_fs $remote_fs $network
# Default-Start:
# Default-Stop: 0 2 3 4 5 6
# Short-Description: Shutdown vms
# Description: Shutdown vms
### END INIT INFO
The script shutdown guest vms when host is shutdown.
I'm newt to Ubuntu 12.04 and linux and my english is not the best one, so I'm sorry for incorrect or stupid questions.
I've installed Korganizer and to start the reminder when I boot the system, I add the "korgac" command to the autostart.This works fine.
But now, every time I want to reboot or shutdown my system, there appears a message that told me that an unknown process is still runing....
I have ubuntu 11.10 64bit, everything worked fine but after i uninstalled the airtime dj app i can't restart or shutdown my pc !! The only way to reach at the screen showing that system is going to shutdown is via terminal but it stucks and never shuts down !
I can't even restart it !
I can suspend my pc fine but can't shutdown or restart it.