LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-08-2005, 03:36 PM   #1
vMatthews
LQ Newbie
 
Registered: Oct 2005
Location: Calgary
Posts: 7

Rep: Reputation: 0
samba auto start on reboot


I am using Sarge.
How do you get Samba to start automatically when you reboot?
 
Old 11-08-2005, 03:40 PM   #2
dastrike
Member
 
Registered: Apr 2004
Location: Stockholm, Sweden
Distribution: Debian 'sid'
Posts: 250

Rep: Reputation: 30
Samba starts automatically on reboot if you installed it through apt-get and haven't manually removed the symlinks from the rc directories.

E.g.
Code:
ls -l /etc/rc2.d/*samba
should report something like
Code:
lrwxrwxrwx  1 root root 15 2004-06-10 22:42 /etc/rc2.d/S20samba -> ../init.d/samba
If it doesn't, I don't know why, try recreating the symlink so it looks like that then.
 
Old 11-08-2005, 03:45 PM   #3
vMatthews
LQ Newbie
 
Registered: Oct 2005
Location: Calgary
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the quick response!!
It says:
lrwxrwxrwx 1 root root 6 2005-10-11 21:45 /etc/rc2.d/s91samba -> /samba
 
Old 11-08-2005, 06:24 PM   #4
danimalz
Member
 
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 267

Rep: Reputation: 36
You can use

rcconf

to manage the startup of services.

Ive heard that it's not a good idea to use anymore, but im not sure why...

(perhaps someone can tell us..!)
 
Old 11-08-2005, 06:40 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,243
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
man update-rc.d

Quote:

INSTALLING INIT SCRIPT LINKS
When run with either the defaults, start, or stop options, update-rc.d makes links /etc/rcrun-
level.d/[SK]NNname pointing to the script /etc/init.d/name,

If any files /etc/rcrunlevel.d/[SK]??name already exist then update-rc.d does nothing. This is so
that the system administrator can rearrange the links, provided that they leave at least one link
remaining, without having their configuration overwritten.

If defaults is used then update-rc.d will make links to start the service in runlevels 2345 and
stop the service in runlevels 016. By default all the links will have sequence code 20, but this
can be overridden by supplying one NN or two SS and KK arguments; one argument overrides the
sequence code for both start and stop links whereas of two arguments the first overrides the code
for start links and the second that for stop links.


EXAMPLES
Insert links using the defaults:
update-rc.d foobar defaults

Equivalent command using explicit argument sets:
update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6 .


or in your case...

update-rc.d samba start 20 2 3 4 5 . stop 20 0 1 6 .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I auto start modules that aren't auto loaded on boot? darkbluedrew Debian 2 09-18-2005 09:10 AM
eth0 config auto ;;;;reboot hermouche Ubuntu 1 09-10-2005 09:35 AM
eth0 Auto Connect, How to auto start on logon cornish Linux - Networking 2 05-09-2005 12:02 PM
auto reboot installing FC2 overlord73 Fedora 0 06-15-2004 12:48 AM
Auto reboot or freezing with new 2.6.3 Kernel oghistorian Linux - General 0 03-12-2004 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration