CentOS 5 :: Restarting A Service Automatically When It Fails?

Jun 25, 2010

So far I have came across three options.

1. Watchdog script
2. Daemontools - using "supervise"
3. Monit - open source monitoring tool

From what I can gather, daemontools is probably the best option. Unfortunately, the documentation on the developers site is very vague and I'm having a hard time getting this to work. I think I have it installed correctly, just don't know how to apply it to the service I want monitored.

how to get daemontools to work. All I want to do it monitor a server on my linux box. When it fails, I want it to be restarted automatically.

View 3 Replies


ADVERTISEMENT

CentOS 5 Networking :: Setup The Cluster To Automatically Failover The Service To Another Node Case One Node Fails?

Mar 1, 2011

I am familiar with windows 2008 cluster servers, and I just started testing with centos cluster. I am creating a simple 2-node cluster, for a simple ping test.

Node 1: 10.0.0.1
Node 2: 10.0.0.1
Virtual ip: 10.0.0.10

So far, I can ping a virtual ip, and manually relocate it between the nodes, but I didn't figure out, how to do this automatically. So this is my question: How can I setup the cluster, to it automatically failover the a service to another node case one node fails?

View 1 Replies View Related

CentOS 5 Server :: Set A Service To Start Up Automatically?

Apr 24, 2010

Ok, so I have installed apache 22, mysql5.0 and proftpd1.3. When I reboot my server, the above applications do not start up automatically, and I have been trying to figure out how with out much success. know that I need to make some changes inside the init.d directory on my CentOS Server.I am running CentOS 5.4 x86_64 build.I really am not sure how to accomplish the task or where to start.

View 4 Replies View Related

CentOS 5 Hardware :: Service Network Stop Automatically - Restart In Cron Tab

Jan 23, 2011

I am using
# uname -rmi
2.6.18-194.26.1.el5PAE i686 i386

# cat /etc/*release*
cat: /etc/lsb-release.d: Is a directory
Red Hat Enterprise Linux Server release 5 (Tikanga)
CentOS release 5.5 (Final)

I have noticed that after few days of ideal system it will stop its network interface. To resolve this I have to login to the machine it self and then issue
# service network start
Is this a feature. If this is not a feature then what is this. As an workaround I am thinking of adding service network restart in cron tab for everyday in night when I am not using it.

View 6 Replies View Related

CentOS 5 :: Service HTTPD Fails When Server Restarted

Apr 22, 2011

I installed centos 5.5 and httpd service was working well for the last 2 weeks till yesterday. I restarted server and noted my hosting service were not working. I have tried service httpd restart on the terminal and it dispalys [FAILED]. I updated my machine and and have tried restarting it but it doesn't work. I am new to centos and I dont know how to solve this.

View 2 Replies View Related

Ubuntu :: Error On Restarting Network Service

Jun 1, 2011

On restarting networking service, i am getting the following error,

Code:
karthick@karthick:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces.. ssh stop/waiting
ssh start/running, process 5427
start: Job failed to start
[ OK ]

View 1 Replies View Related

Server :: Error When Restarting Network Service

Jun 19, 2011

I use red hat linux. When I start up network service. I get below error in eth2
root@vls etc]# service network restart
Shutting down interface eth2: [OK]
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface eth2: RTNETLINK answers: File exists
Error adding address 10.1.1.82 for eth2. [OK]

I paste the ifcfg-eth2 in here
[root@vls network-scripts]# cat ifcfg-eth2
# Intel Corporation 82572EI Gigabit Ethernet Controller (Copper)
DEVICE=eth2
BOOTPROTO=none
BROADCAST=10.1.255.255
HWADDR=00:80:82:8F:B4:A2
IPADDR=10.1.1.82
NETMASK=255.255.0.0
NETWORK=10.1.0.0
ONBOOT=yes
GATEWAY=10.1.1.249
TYPE=Ethernet
USERCTL=yes
IPV6INIT=no
PEERDNS=yes
So, what is the problem of error adding address?

View 1 Replies View Related

Fedora Networking :: Unplugging Network Cbl - Restarting Service Crashes FC12

Feb 2, 2010

The system will also crash when booting if it is not plugged in. However, this behaviour is not consistent. The crash is not really a crash so much as a complete system freeze, where not even the numlock light on the keyboard will turn on or off. I have to do a hard reset to get it going again.The last entry before the reboot in /var/log/messeges just shows eth0 link going down.

View 1 Replies View Related

Hardware :: Laptop Touchpad Not Working - Function Key Automatically Activated On Restarting Ubuntu?

Dec 10, 2010

Everything was working fine when my laptop got shut down after a battery failure. Now, on restarting, the computer hangs at the login screen. If I close the lid and reopen it, the keyboard seems to work and I can enter password and login, but the touchpad doesn't work at all and all the functions that were to be performed while holding the function key seems to happen automatically (For eg. when I press 0, another key gets typed). Perhaps the drivers are't getting loaded properly, I don't know. The same story is there no matter how many times I restart. I am using Ubuntu 9.10 and the laptop is Dell Vostro 1525

View 2 Replies View Related

OpenSUSE :: Restart Automatically A Service?

May 27, 2010

I have a box Suse 11.1 with a service that (I dont know why) every day stop at the same time. Im finding why it come to a halt but in the meantime I would like restart it automatically.As root I insert in crontab the line:25 16 * * * /etc/init.d/service startBut it don works
If I launch manually /etc/init.d/service start (or stop) it works

View 3 Replies View Related

General :: Difference Between Restarting/stopping Apache Using 'service Httpd Restart/stop' And Apachectl Restart/stop

Oct 11, 2010

whats the difference between restarting/stopping apache using 'service httpd restart/stop' and apachectl restart/stop. I know that using 'service httpd restart' is actually a script in /etc/init.d/httpd but what about apachectl?

View 1 Replies View Related

CentOS 5 :: After Restarting Apache Site Is Down?

Apr 7, 2011

after restarting Apache site is down?

View 1 Replies View Related

Server :: Start Squid Service Automatically?

Mar 14, 2011

When ever I reboot my server I always turn on the squid service. Is there any way that without giving command

Code:
#service squid start
my squid service should automatically start ?

View 7 Replies View Related

Ubuntu / Apple :: Service Start Automatically On Login?

Sep 27, 2010

I followed the directions in the MacBook7-1 setup thread for lucid to install pommed: [URL]... This works well, I can control brightness, volume and keyboard backlights using the function keys.

However, pommed doesn't start automatically on login. I have to maually start the service. Is their a way to have this service start automatically on login?

View 3 Replies View Related

Ubuntu Servers :: Dovecot Service Stop Automatically?

Jul 1, 2011

i have two ubuntu server the first run on ubuntu 9.10 = ok the second run on 10.10 maverick a have the problem that dovecot service stop automatically

View 1 Replies View Related

CentOS 5 :: Web Server (Apache) Keeps Stopping And Restarting?

Oct 17, 2009

I am having a problem in that the Web Server (Apache) keeps stopping. I know this as watchdog is emailing me. Then about 15mins later it starts again. I cannot seem to find why. can anyone give me pointers as where to look to find the issue.

View 1 Replies View Related

Server :: NFS Service Fails To Stop?

Mar 5, 2010

I have setup a backup system on a NFS Server, and everything is working fine.Then, I decided to make changes to my backup script, and accidentally, I turned off both the NFS Server and Client without unmounting first.The NFS Server is working fine, but the client is having a problem. I cannot shutdown the nfs service. Here is what I get when I type "service nfs restart":

Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS quotas: [ OK ]

[code]...

View 1 Replies View Related

CentOS 5 Networking :: After Restarting - Network Won't Load / Resolve This?

Feb 26, 2010

It is really a problem that drives me crazy.

Every time after restarting my Linux machine, Network won't load and i can't activate eth0.
After multiple restarts it comes activated but i am sure it is not what makes it to work.

Can some one ever heard about such situation?
I have a 3com Ethernet adapter.

View 7 Replies View Related

Fedora :: Akmods.service Fails At Boot

Jul 13, 2011

[URL]i discovered a new problem. The command to look for failed services reports the following:

Code:
systemctl list-units --failed
UNIT LOAD ACTIVE SUB JOB DESCRIPTION
akmods.service loaded failed failed LSB: Builds and install new kmods from akmod packages
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
JOB = Pending job for the unit.

1 units listed. Pass --all to see inactive units, too. The akmods.service is installed of the nvidia graphics card module, which loads fine and is behaving fine. I tried to disable the service and then enable it again, but the error persists.

Is this just a kind of notification, that everything is okay, and no new modules need to be build? Or is this indication for possible breakage ahead during next kernel update?

View 9 Replies View Related

Debian Configuration :: Jessie With XFCE - Service Fails

Feb 10, 2016

I am using Jessie with XFCE and I tried to write a service which executes a script to change my wallpaper. When I try to start the service with systemctl start wallpaper.service it fails and I get the outout below from systemctl status wallpaper.service

I don't think it to be a permissions issue, they are -rw- r-- r--

This service is called by a timer that goes off daily. Below is wallpaper.service

View 5 Replies View Related

Fedora Servers :: NMB Service Fails On Boot, Needing To Be Restarted Manually?

Mar 30, 2009

I have the Samba server & users configured, I can access between Linux/Windows shares and both SMB & NMB services are set to be enabled at boot.Everything working.But when I restart the computer, I notice in services configuration that "This service is dead." for NMB. Therefore I have to enable it manually upon boot so that it works.I'm using Fedora 10, fresh installed and updated. I've noticed through search that others have had this issue as well throughout other versions of Fedora, yet I have not found a conclusive solution to this.

View 3 Replies View Related

Debian :: Automatically Continue Booting After Fsck Fails?

Dec 30, 2010

I've just migrated to Debian from Ubuntu on my server. So my first post here. I've had some problems and questions when installing and configuring Debian, now everything seems very smooth, but still I can't find answer to one question. My machine is headless and I allways use SSH to it. I have several partitions on machine so if one of them fails on booting time with fsck, I need to press CTRL+D combination to continue. In that case I need to go to the machine with monitor and keyboard and press that combination. Is there any way to automatically continue for example after 30 seconds ? Then I could log in to the system and check log files what is wrong. How can I do that ?

View 2 Replies View Related

General :: Create Cron Tab When DSL Line Down Set Automatically Restart The Network Service While DSL Line Up?

Oct 7, 2010

How to create cron tab when DSL line down set automatically restart the network service while DSL line up?

View 3 Replies View Related

CentOS 5 Networking :: Fails At Determining IP Information For Eth0 (onboard NIC Asus P6T On Centos 5.3)?

Apr 28, 2009

I'm running a fresh install on an intel i7 system on an asus p6t deluxe v2 motherboard with the onboard NIC (Marvell Technology pci-e). I know the NIC is working as when I boot into the onboard OS that Asus provides (Asus Express Gate SSD)I have a working net connection.Booting up CentOS hangs at determining IP information for eth0 and eventually fails with the following error:PING xxx.170.30.1 from xxx.170.31.231 eth0: 56(84) bytes of data---xxx.170.30.1 ping statistics ---4 packets transmitted, o received, +3 errors, 100% packet loss, time 2999ms, pipe 3 failed.

RTNETLINK answers: file exists.
RTNETLINK answers: file exists.
RTNETLINK answers: file exists.

[code]....

View 14 Replies View Related

CentOS 5 :: Booting CentOS V5.2 Fails With GRUB Error 13: Invalid Executable Format?

May 5, 2009

I'm trying to install a dual booting machine with OpenSUSE v11.1 32bit and CentOS v5.2 64bit. I installed OpenSUSE first and allowed it to install and configure grub in the MBR and after that I wanted to proceed with CentOS v5.2. The installation went fine with two notable exceptions:- when I had to configure grub installation parameters, CentOS offered me only 2 solutions: either install it on the MBR of the first hard disk or not installing it at all. Other distributions are more flexible allowing you to install it in the boot sector of the root partition for example. Because I didn't want to ruin the existent grub onfiguration, I reluctantly accepted not to install it for CentOS assuming that I could manually configure the entry later in grub's menu.lst file.

- when I was presented with the options for software components installation, I've clicked on virtualization category/function because I intend to use the machine as a VMware host. There was no guidance on screen at that point and I blindly assumed that by choosing the virtualization function I would get necessary tools and drivers that will help me further on. It seems that this was a wrong move as you can see it below.

After completing the installation, I tried to search for a template or guiding on how the menu entry in menu.lst should look like but the grub directory was empty, not surprisingly because I've told CentOS earlier not to install it. Using the files in the /boot directory from the CentOS installation I tried to improvise a menu entry but it's not working. The boot stops with famous Error 13: Invalid or unsupported executable format. Using the file command to check what kind of files I'm trying to load as kernels I'm getting :

marte:~ # file /mnt/vmlinuz-2.6.18-92.el5xen
/mnt/vmlinuz-2.6.18-92.el5xen: gzip compressed data, from Unix, last modified: Tue Jun 10 19:20:51 2008, max compression

[code]....

View 2 Replies View Related

CentOS 5 :: Installation Fails For Centos 5.6 With Marvel 88SE61xx Drive Controller?

Jul 29, 2011

I am trying to install Centos 5.6 on a motherboard with a built in Marvel 88SE61xx drive controller.NO drive arrays are configured using the Marvel BIOS configuration utility.During the install CENTOS displays loading MARVEL_PATA driver and it waits and waits and waits.Looking on one of the system message screens I get the following types of messages:qc timeoutfailed to identifyI/O errorLink is slow to respondSRST failed errno=16ata4: reset failed - giving upAny ideas as to how to get CENTOS to recognize the drives connected to the motherboard Marvell controller on a NON-RAID configuration?

View 1 Replies View Related

CentOS 5 :: SMTP Test Fails During Qmailrocks Install CentOS 5.5?

Oct 2, 2010

I am trying to run though the qmailrocks setup on a centos 5.5 and I am running into an issue when trying to telnet to port 25:

telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.

Everything else seems to be working (telnet to 110), and I turned off the firewall entirely, but I still cannot telnet to port 25. I also get a blank error within squirrelmail when attempting to send mail out (ERROR:Message not sent. Server replied: ). I apologize for not going directly to the qmailrocks forum, but they are currently closed down (due to lack of funds). I also am a newbie, so I apologize for the lack of needed information. If anyone has any ideas, please let me know what information you would need.

View 2 Replies View Related

CentOS 5 :: How To Install RPM Service

Jan 29, 2011

How to install rpm service? I performed command
# yum remove sqlite
and it removed rpm and yum services, as well as many others. How to reverse changes?

View 17 Replies View Related

CentOS 5 :: Boot Old Centos On Intel D510MO Fails?

Apr 8, 2010

i want to change my server to a intel d510mo withoutchanging the installation.The old nstallation runs on a centos 5.4 asus amd board witha sata raid, sata-sil adapter in no raid modus.and that is the problem.i boot the centos on the intel board, and only the sata-sil module is loaded, so noata drive is found.How can i change this? udev? i disabled the scsi-hostadapter in modprobe.conf, but no

View 1 Replies View Related

Server :: How To Start SSL Service In Centos 5.5

Feb 7, 2011

I am in the task of migrating old linux to new linux which centos 5.5. while moving out all apps ,data etc.I need to configure SSL in apache.I have installed mod_ssl with apache 2.2. i went though some docs to configure with certificate that I have . Not sure how to start the service in 2.2. The apache/SSL was configured in my old server which apachectl. SO after importing certificatr , I do ./apachectl startssl to take in effect. In my new server , the http service is /etc/init.d/httpd, not sure how to start SSL service in centos 5.5.

[Code]...

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved