I wrote a script which starts from init.d .When it finishes I need it to notify-send a message to me (I am running GNOME). I tried
export DISPLAY=:0.0
but it doesn't help.
Is there any way to do this?
Hi All,
I have few doubts on VRRP.
Which kernel version is supports VRRP- VMAC?
How to enable VRRP-VMAC on interface(expecting VRRP behavior in kernel itself)?
I have tried with netlink socket ( as per Keepalived daemon tool), but I am getting error "file already exists".
I am suspecting, when I check with Keepalived daemon code and kernel 2.6.30......
I installed on a ubuntu 12.10 server the keepalived package and configured it, but it complains later in the syslog, that a virtual id must be set
Keep alive configuration
# Define the script used to check if haproxy is still working
vrrp_script chk_haproxy {
script "killall -0 haproxy"
interval 2
weight 2
}
# Configuation for the virtual interface
vrrp_instance VI_1 {
stat
A linux newbie here! I own a netbook which doesn't have any indicator leds. So I decided to write a small shell script that would notify me when the capslock key is pressed.
I'm run a script with cron:
*/10 * * * * flock -n /tmp/lock script
I have to make sure that only one instance of the script is running at the same time, and for that I'm using flock. The problem is that sometimes this script starts a daemon, in this case, the daemon blocks the following script executions.
I'v a couple of firewalls running Keepalived 1.1.15 (Debian Lenny), at the origin for the VRRP feature.
Then I added an LVS cluster with two 2 SMTP servers and lb_kind = NAT so our customers have transparent fallback and load-balancing.
The issue with this setup was that all other servers behind the firewall are unable to reach the SMTP LVS ip address (because of the lb_kind NAT).
I rad some article.
Keepalived over GRE tunnel for failover on VPS environment
http://blog.killtheradio.net/how-tos/keepalived-haproxy-and-failover-on-...
but, I don't know how to configuration?
I have a script which starts a daemon process and then sleeps for 20 seconds. If I run the script on SLES11 SP1 or RHEL6 then after the script exits the process is still running.
If I run the script on SLES11 SP3 or RHEL6.3 then after the script exits the process is no longer running.
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.