LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Start Stop Restart Services (https://www.linuxquestions.org/questions/slackware-14/start-stop-restart-services-30203/)

Sifvion 09-12-2002 11:28 AM

Start Stop Restart Services
 
Normally how you guys start stop and restart services like httpd and so on? service httpd restart doesnt work on me, it say command not found!

trickykid 09-12-2002 12:15 PM

Have you tried givng the full path to the rc.d directory ? How exactly are you trying to restart ?? Have you tried a stop then a start ??

NSKL 09-12-2002 02:40 PM

cd /etc/rc.d
./rc.nfsd stop would stop NFS server
./rc.httpd stop would stop http daemon
Make sure rc.* have execute permissions (if you want to run them) and dont forget the "./" before the rc filename. ./ - means execute file but im sure you know this already :D
Hope that helps
-NSKL

Sifvion 09-12-2002 06:48 PM

how about proftpd? i dont see any rc.proftpd in /etc/rc.d

NSKL 09-13-2002 10:26 AM

Thats probably cuz proftpd is started by another daemon, posibly inetd. Look through rc.inet2 and /etc/inetd.conf and you will find the line that starts the FTP services. Comment it out and send inetd a HUP signal to restart it (or simply restart your box) so it re-reads its configuration. Hope that helps
-NSKL

Sifvion 09-13-2002 09:55 PM

how to you send a HUP signal to restart it? And restart my box? No Way server shouldnt restart in anyway.

NSKL 09-14-2002 03:13 AM

You EITHER send a HUP or you restart your box.
check the beggining of /etc/inetd.conf and you will find instructions to send a HUP to the server and restart it.
I suggest you read through whole of inetd.conf to see the services it starts so you will know for next time.
HTH
-NSKL


All times are GMT -5. The time now is 04:45 PM.