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.
|
 |
11-21-2002, 03:17 PM
|
#1
|
LQ Newbie
Registered: Nov 2002
Location: MN
Distribution: Mandrake
Posts: 2
Rep:
|
Auto starting an application
I would like to get my SAMBA server running automatically at
system startup. I know how to do it manually.
Is there a script or some command I can place somewhere ( sort of like the old Autoexec.bat in DOS) which would contain the commands for the startup of the program?
Thanks
Bart
Last edited by bbereg; 11-21-2002 at 03:19 PM.
|
|
|
11-21-2002, 04:06 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Look in your startup scripts usually found /etc/rc.d or similiar location and place in the appropiate runlevel you boot your system into.
|
|
|
11-21-2002, 04:07 PM
|
#3
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
you should already have the smb daemon script on your system.. /etc/init.d/smb typically, you should be able to make it start automatically either with some silly kde control centre gubbins, or "chkconfig --level 35 smb on" much easier.
|
|
|
11-21-2002, 04:12 PM
|
#4
|
LQ Newbie
Registered: Nov 2002
Posts: 22
Rep:
|
heh... just answered it here

|
|
|
11-21-2002, 04:13 PM
|
#5
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
For GUIs, if you're using a relatively recent (8.0+) version of Mandrake then you can do it from the 'Mandrake Control Center'. Go to the 'system' section, then go to 'services'. Take a look down the list and see if samba is there (it'll be called smb). If you're running something a little older, then you can use a slightly more cumbersome (although I reckon a much better, as far as GUIs go) tksysv.
|
|
|
11-21-2002, 04:20 PM
|
#6
|
LQ Newbie
Registered: Nov 2002
Location: MN
Distribution: Mandrake
Posts: 2
Original Poster
Rep:
|
TO start SAMBA manually I type
/etc/rc.d/init.d/smb start
I just cannot figure out what I have to do to make it start automatically when the system starts up
(in DOS I would put the command into autoexec.bat)
I am trying to find out what command or commands or script and where to put it in linux
|
|
|
11-21-2002, 04:25 PM
|
#7
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
In the directory /etc/rc.d there are subdirs called rc?.d ranging from 1 through to 6. In these are symlinks to other files in /etc/rc.d/init.d. The links begin either with an S to start a service or a K to kill it. The number represents at what stage (I believe) the service is to be started, so if it depends on something else, it can be started later. Put it simply, since samba doesn't depend on anything else, in /etc/rc.d/rc3.d you'd make a symlink to /etc/rc.d/init.d/smb and then when you boot (or change to runlevel 3) the samba service will start. This does not mean that it will mount any remote shares at bootup, that's something different. And all of this can be found if you search.
HTH
<edit>
Most of us will already know how to do stuff in DOS, thankyou. 
</edit>
|
|
|
11-21-2002, 04:40 PM
|
#8
|
LQ Newbie
Registered: Nov 2002
Posts: 22
Rep:
|
bbreg... like I said, I just answered this here
|
|
|
All times are GMT -5. The time now is 06:52 PM.
|
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
|
|