Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't restart daemon?

Status
Not open for further replies.

HKNinja

MIS
Nov 17, 2002
148
US
I tried to restart xinetd on my Mandrake by typing
"./ixnetd restart" and got the following message...

[root@mail init.d]# ./xinetd restart
Usage: xinetd [-d] [-f config_file] [-filelog filename] [-syslog facility] [-reuse] [-limit proc_limit] [-loop loop_rate] [-pidfile filaneme] [-logprocs imit][-shutdownprocs limit] [-cc interval]

When I use the same command on my Red Hat 9, my inetd will restart. What's wrong?! Please help.

ps: I ran it under ./etc/init.d/

 
The startup program is a script that must be different on Mandrake and RedHat. In the RedHat startscript there is a case statement and restart is one of the arguments accepted. This must not be the same in Mandrake.

In the Mandrake script, look for a section like this

case i in $options
start | xxxx ;;
stop | xxxxx ;;
* | xxxxx ;;

just add restart
restart | stop; start ;;


From restart you call stop function ; then the start function. That is all you need to do.

>---------------------------------------Lawrence Feldman
SR. QA. Engineer SNAP Appliance
lfeldman@snapappliance.com

 
Wizzardkid,

Thanks for the reply, but again, same message.

Clonny2,

I remember I saw something like that, but don't remember which file it was. But I did see someone runs "xinetd restart" on this machine and it worked perfectly. :-/
 
What version of Mandrake are you running? On my 9.1 box if i (as root) do:
/etc/init.d/xinetd restart
it works fine.
Sounds like its trying to run the daemon executable rather than the init script. Could be a pathing problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top