LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Restarting the inetd daemon (https://www.linuxquestions.org/questions/linux-newbie-8/restarting-the-inetd-daemon-640356/)

hypercondor 05-06-2008 02:57 PM

Restarting the inetd daemon
 
Hi i was wondering if there was a way to restart the inetd daemon in one command. I am guessing it has something to do with combining the "kill -HUP" and the "pidof" command, i just cant work it out. Thanks

viron 05-06-2008 03:03 PM

killall -HUP inetd

or

pidof inetd

kill -HUP <pid>

TB0ne 05-06-2008 03:04 PM

Or "/etc/init.d/xinetd restart". Perhaps /etc/init.d/inetd restart, depending on your installation.

hypercondor 05-06-2008 03:09 PM

thanks very much guys, I used "kill -HUP `pidof inetd`" and that worked. Thanks for the fast replys :D


All times are GMT -5. The time now is 08:13 PM.