service xinetd restart doesn't work on gentoo
Hello, when i type as root
Code:
service xinetd restart but when i type: Code:
/etc/init.d/xinetd restart * Caching service dependencies ... [ ok ] * Stopping xinetd ... [ ok ] * Starting xinetd ... [ ok ] knowing that i emerged xinetd and the first command works on another gentoo machine, its not of a big deal but i was just wondering why it is not working? |
Maybe you became root without including root's environment, so $PATH may not have included /sbin. Make sure you don't forget the dash: 'su -' or 'sudo su -'
|
didn't work
no i am already logged in as root but i still tried
Code:
su - root Code:
echo $PATH and xinetd is present in /usr/sbin which is included in the path and this is what is bewildering... anyway thanks for trying to help, any other ideas? |
The 'service' command is part of the initscripts package and should be located under /sbin. Does it exist ?
|
thanks for the idea
actually it didn't come to my mind that the problem is with service command, it seems that in gentoo it doesn't exist. the other server it has the service file in it but it is redhat and not gentoo. So i read in a gentoo forum that a work around is to create a file called service in /usr/sbin and put the following in its content:
#!/bin/sh runscript /etc/init.d/$1 $2 and then Code:
chmod +x service runscript should not be run directly anything can be done further? edit: grammar mistakes |
solved
for some reason i was typing in the end the command reversed i.e.
Code:
service restart xinetd Code:
service xinetd restart |
Hey when I tried the same command the following error what should i want to do
/etc/init.d/xinetd: line 39: /etc/init.d/functions: No such file or directory * ERROR: xinetd failed to start Regards, Pradeep |
What command did you try? the one with the dollar signs?
|
All times are GMT -5. The time now is 08:06 AM. |