Date: Mon, 18 Dec 2000 13:50:22 -0500
Message-Id: <200012181350.AA447217942@pressroom.com>
From: "Oleg Godeanu"
Hi,
On Sun, Dec 17 2000 at 22:19 -0800, Greg Thomas wrote:
On Sun, 17 Dec 2000, Stefan Troeger wrote:
On Sun, Dec 17 2000 at 09:45 +0000, Pete Atkinson wrote:
[Turning services off]
If you comment out the relevant entries in /etc/services, this should do the trick..
Actually, this won't do any neat tricks. /etc/services contains just the mapping from ports to service names. It does not start services.
Yes, but once you kill the process associated with the port, if it is commented out of /etc/services the daemon should not start up the next time init scripts are run. This is an indirect way of doing things, though. Haven't checked this on Linux but Solaris, HP-UX, and OpenBSD behave this way.
On Linux I wouldn't rely on it:
[root]/root# netstat -an --inet |grep 8080
[root]/root# ps ax |grep wwwoffled |grep -v grep
[root]/root# grep 8080 /etc/services #http-alt 8080/tcp # HTTP Alternate (see port 80) #http-alt 8080/udp # HTTP Alternate (see port 80)
[root]/root# rcwwwoffle start Starting service wwwoffle done
[root]/root# netstat -an --inet |grep 8080 tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN
[root]/root# ps ax |grep wwwoffled |grep -v grep 1297 ? S 0:00 /usr/sbin/wwwoffled
Ciao, Stefan
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq