Search My Techie Guy

Tuesday, September 5, 2017

Stopping xinetd: FAILED - Trying to Install and Run TFTP Server on CentOS 6

Summary: 

Am trying to install and run TFTP Server on CentOS 6.3 but i think i have issues with my xinetd service!
Trying to start it is OK
Trying to stop it FAILED
Checking status say xinetd is dead!!!

Problem or Goal: 


# service xinetd stop
Stopping xinetd:                                           [FAILED]


Cause: 

Not sure what could be causing it, i was too lazy and did try to trace or debug the service. Yet i was in a hurry to get the TFTPD service up and running.

Solution: 

1. First i uninstalled the TFTPD server that i had installed together with it's config files.

2. Backed up the xinetd.config file


# cp xinetd.conf xinetd.conf.bak
#

3. Removed the xinetd.config file

# rm xinetd.conf
rm: remove regular file `xinetd.conf'? y

4. Uninstalled xinetd package using rpm

# rpm -qa | grep xin
xinetd-2.3.14-35.el6_3.x86_64
# rpm -e --justdb --nodeps xinetd-2.3.14-35.el6_3.x86_64

5. Re-installed xinetd package using "yum install"

 [root@localhost xinetd.d]# yum install xinetd

Problem Solved?

xinetd service can now stop, check status and start

# service xinetd start
Starting xinetd:                                           [  OK  ]

# service xinetd status
xinetd (pid  1275) is running...

# service xinetd stop
Stopping xinetd:                                           [  OK  ]

# service xinetd status
xinetd is stopped

# service xinetd start
Starting xinetd:                                           [  OK  




No comments: