View Single Post
  #8  
Old 23rd April 2006, 20:30
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,034
Thanks: 265
Thanked 151 Times in 131 Posts
Default

Quote:
Originally Posted by falko
Looks ok. I saw some output of SELinux. Is SELinux disabled?
Hmm it should be disabled, but I do also see
Quote:
SELinux: Initializing.
SELinux: Starting in permissive mode
selinux_register_security: Registering secondary module capability
I guess that this is saying that SELinux is running. I have NO CLUE how it got installed!

The install I did was the "perfect_setup_fedora_core_4", and I'm 100% sure that I disabled the SELinux option!

Is there an easy way to 'kill' it again?

Anyway... I've now made a small bash script that I run every hr to ping the gateway.. If no ping.. restart the network :/

Code:
#!/bin/bash

pingAddress="10.0.0.138"	# IP of gateway
emailAddress="root@host"	# address to send restart message
timeNow=$(date)			# set the date and time

if [ -n "$(ping -c 1 $pingAddress|grep 100%)" ]
then
# no ping reply.. Lets email root and restart the network :-(
    mail -s "No ping. Server network restart" $emailAddress <<-END
    This is to inform you that the server network was restarted at $timeNow
END
/etc/init.d/network restart
fi

Last edited by edge; 24th April 2006 at 13:57.
Reply With Quote