LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-08-2004, 02:18 AM   #1
acbenny
Member
 
Registered: Jul 2004
Posts: 44

Rep: Reputation: 15
frail to restart xinetd from the /


Can I restart xinetd from the / , I have add path to /root/.bash_profile, but also fail.

[[root@localhost root]# cat .bash_profile | grep rc.d
PATH="/$PATH":/etc/rc.d/init.d

[root@localhost /]# ./xinetd restart
-bash: ./xinetd: No such file or directory
 
Old 08-08-2004, 03:18 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
You seem to have a misconception of how the path
and/or the invocation of commands work.

The preceding ./ is used only if you want to execute
a command in the current directory which is not in
your path. If something is in your path you want to
invoke the command without the ./ since there
actually is not xinetd in / ...

In your example that would be
xinetd restart


Cheers,
Tink

Last edited by Tinkster; 08-08-2004 at 03:19 AM.
 
Old 08-08-2004, 06:13 AM   #3
acbenny
Member
 
Registered: Jul 2004
Posts: 44

Original Poster
Rep: Reputation: 15
But i get the following result , it seems fail.what i wrong ?

[root@localhost root]# xinetd restart
Usage: xinetd [-d] [-f config_file] [-filelog filename] [-syslog facility] [-reu
se] [-limit proc_limit] [-pidfile filename] [-logprocs limit] [-shutdownprocs li
mit] [-cc interval]
 
Old 08-08-2004, 01:43 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
In this case there's a second program by the same name
(most likely the executable rather than the script) somewhere
in the path before the /etc/rc.d/init.d bit ...
Try a "which xinted" to see which one it finds ...

If you explicitly want to run that script, fully qualify
the path.

Code:
[root@diggn:/]$/etc/rc.d/init.d/xinetd start

Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
who uses xinetd? Motown Linux - Distributions 0 07-07-2004 04:56 PM
xinetd iftiuk Linux - Networking 2 04-20-2004 02:26 PM
Xinetd dead --xinetd dead but pid file exists hillxy Linux - General 1 04-15-2004 03:10 PM
xinetd.d Tigger Linux - Newbie 33 06-21-2003 01:41 AM
xinetd.d NiM Linux - Networking 1 10-24-2001 05:59 PM


All times are GMT -5. The time now is 09:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration