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.
Hi,
I manually installed tomcat5 on my server and want it to start directly after booting.
I wrote a short Init-script for that:
#!/bin/sh
### BEGIN INIT INFO
# Provides: tomcat
# Required-Start: $network $syslog $remote_fs
# Should-Start: $named $syslog $time
# Required-Stop: $network $syslog
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....
Hello.
I am running Ubuntu Server x64 12.04. I have apcupsd properly running.
I want to call a script on machine shutdown and restart.
I have written code like
#!
Hello, I have installed the proprietary ati/amd drivers for my Radeon HD 4200 card with the smxi script and ever since I am unable to Logout/Reboot/Shutdown my system properly - it just goes to a black screen and I'm forced to manually shutdown the system. I can provide any output that you may think can help. I am using the latest Statler release with backports.
I want to create to deploy a heartbeat service (a python script) as a service using Upstart.
My understanding is that I've to add a /etc/init/myheartbeatservice.conf with the following contents.
on both host and guest running CentOS 6.3 with KVM/Qemu virtualization, I have the following scenarios:
"virsh shutdown kvm1" did not shutdown at all. virsh lists guest as running.
"service libvirt-guests stop" did not shutdown in 280 seconds (shutdown_timeout=300. on_shutdown=shutdown)
"shutdown now" from within guest, guest becomes unreachable.
I have an init script (im running Debian) to start serviio a DLNA server. When i go to start the service i get the following error. Any help would be appreciated. Please note: I'm VERY new to linux/bash/debian.
I get this error: Invalid Syntax: unexpected then on line 43, expected }
With this code:
#!