Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-25-2012, 04:38 AM
|
#1
|
LQ Newbie
Registered: Jul 2012
Posts: 5
Rep: 
|
Different between /etc/services and /etc/init.d
Hi.
Please I want to know the difference between /etc/services and /etc/init.d.
Secondly, I would want to know how to stop rwalld in ubuntu.
Thanks
|
|
|
07-25-2012, 04:43 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,250
|
/etc/services is a file, /etc/init.d is a dir. you can have detailed info about /etc/services by executing man services
|
|
|
07-25-2012, 04:59 AM
|
#3
|
LQ Newbie
Registered: Jul 2012
Posts: 5
Original Poster
Rep: 
|
Thanks pan64. Please do you also know how to stop rwalld.
Thanks
|
|
|
07-25-2012, 05:28 AM
|
#4
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,250
|
that depends on your os, probably rwalld stop and rwalld start works...
|
|
|
07-25-2012, 05:34 AM
|
#5
|
Member
Registered: Nov 2005
Distribution: CentOS 5, Fedora 23
Posts: 218
Rep:
|
init.d services have a number appended to them. This is the order in which the services are started and stopped during startup/shutdown. The services need to be started in order to provide dependencies between the services. starting or stopping a service with /etc/init.d/ does not provide the dependency. Often this does not matter. Using the service command is the 'new way' of starting/stopping services as this checks dependencies before starting/stopping the service.
for your service, have you tried 'service rwalld stop' or '/etc/init.d/rwalld stop'?
|
|
|
07-25-2012, 05:44 AM
|
#6
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
The file /etc/services is just a lookup table linking service names to port numbers. As you might know, networks work with numbers, not with names.
Code:
telnet somehost smtp
The telnet program will lookup 'somehost' to get the IP address of it by using whatever is specified in resolv.conf (dns, file /etc/hosts) and it will lookup 'smtp' in /etc/services. Internally it will use the IP address and the port number.
|
|
|
07-25-2012, 06:07 AM
|
#7
|
LQ Newbie
Registered: Jul 2012
Posts: 5
Original Poster
Rep: 
|
Difference between /etc/services and /etc/init.d
Thanks.
I have tried rwalld stop and it doesn't work. This is the error: "No command 'rwalld' found, did you mean:
Command 'rwall' from package 'rwall' (universe)
rwalld: command not found".
I also tried service rwalld stop and the error was: "unrecognized service". Tried rwall stop and it does nothing...
I can't even find it in the init.d directory.
One more question please, is rwall a protocol? If it is, what port number does it use in the /etc/services file?
Many thanks.
|
|
|
07-25-2012, 07:33 AM
|
#8
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
Just do a grep
Code:
grep rwall /etc/services
It will give you the line with the info (if it exists). I'm not behind a Linux machine to quickly check.
|
|
|
07-25-2012, 10:07 AM
|
#9
|
LQ Newbie
Registered: Jul 2012
Posts: 5
Original Poster
Rep: 
|
Thanks it worked. I guess rwall is not stored in /etc/services, because it worked for other protocols but didn't give any output for rwall. Or is rwall the same as netwall?
Many thanks.
|
|
|
All times are GMT -5. The time now is 10:46 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|