Linux - NewbieThis 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.
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.
I use bash... but samba doesn't show up.. where is the samba binary? I checked the normal bin directories.. nothing.. i have teh samba.conf and manual and everything.. just can't find the freakin binary... doing a;
# locate samba
scrolls most of it's results and leaves me with var and usr/local/man listings n such...
please help! Im like.. not supose to be a newbie anymore this is getting bad
but whats the contents of init.d supose to be? i know thats not the samba binary.. is it? it init.d just the direct that keeps links to service-based apps? i confuse.
init.d is used to store program initiation files (so that when you type "samba start" or "samba stop", it knows what to do). Just below the directory init.d (in rc.d) should be a few more directories, rc0.d, rc1.d, rc2.d, etc. These directories represent the different run levels (ie. rc3.d initiates when you switch to run level 3) and contain symbolic links to the files in init.d.
If you look inside the run level directories you'll see links in the format:
K11service
and
S11service
These links tell linux to either kill (K) or start (S) a service. The 2-digit number tells it in what order to execute each command (ie. K24 will be executed before K36 or S57). So, if you want samba to run when linux starts, you'll need to put a symbolic link to it in run level 3:
I have been starting Samba by using rc.local. To my understanding this is pretty much like running shell commands after all other processes have been started on bootup. So I edited my rc.local file (located under /etc/rc.d/) and added the line: service smb start.
Here's my question: Would it be better to use the methods you described or is what I'm doing OK? The only disadvantage I can see is that the process isn't being killed, since we never sent a kill signal to that process when the machine shuts down. Would that be a problem?
Don't think so, it's exactly as you said... rc.local is loaded after everything else,
If it had been a firewall script or something security related I would have used the other option though
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.