I installed Samba 2.2.2 via on my Linux 8.1 via Mandrake's updated RPM files - over top of an initial RPM packaging of 2.2.2 for Mandrake by Buchan Milne. SMB does not auto start, so each time I power up the Linux box I must run: /etc/rc.d/init.d/smb start How would one make this happen automatically... I'm guessing there is some sort of config file I need to add SMB to which starts services at bootup...??? Thanks! Michael Lueck Lueck Data Systems http://www.lueckdatasystems.com/
check your /etc/inittab to find your default runlevel. Make shure there are symbolic links to your Samba start script (/etc/rc.d.init.d/smb) in the rc-Directory for your default runlevel. For example if the default runlevel is 2 you need something like "S50samba -> ../init.d/smb" in /etc/rc2.d. - The file locations may be different in every distribution, but I hope this points in the right direction - Good luck - Martin>I installed Samba 2.2.2 via on my Linux 8.1 via Mandrake's updated RPM files - >over top of an initial RPM packaging of 2.2.2 for Mandrake by Buchan Milne. SMB >does not auto start, so each time I power up the Linux box I must run: > >/etc/rc.d/init.d/smb start > >How would one make this happen automatically... I'm guessing there is some sort >of config file I need to add SMB to which starts services at bootup...??? > >Thanks! > >Michael Lueck >Lueck Data Systems >http://www.lueckdatasystems.com/
On Sun, 3 Feb 2002, Michael Lueck wrote:> SMB does not auto start, so each time I power up the Linux box I must > run: > > /etc/rc.d/init.d/smb start > > How would one make this happen automatically...Make sure there's start links (probably in /etc/rc.d/rc?.d) in the levels you care about named S??something, and stop links in the levels in which you want to stop it (at least 0 and 6, maybe 1 too), named K??something. I think chkconfig will set up these links for you, at least on RedHat Linux. If you do it by hand, use soft links, not hard. -- -eben eQbWeEnR@gTaYtUeI.nOePt home.tampabay.rr.com/hactar This message was created using recycled electrons. <html><body><!
On Sun, 3 Feb 2002, Michael Lueck wrote:> I usually don't start X unless I want to open a few term sessions, > editors, etc... So does that mean 0 and 6 is enough????0=reboot, 1=single-user, 2=normal-but-no-NFS, 3=normal, 4=unused, 5=XDM, 6=halt. At least that's from memory, and it may vary by distribution. ICBW; check /etc/inittab. So normally you boot into runlevel 3, if you don't use XDM. Look for a line "id:initdefault:3" or similar. Very bad things will happen if you set initdefault to 0 or 6.> What about stop links???? This means if I switch into that level the task > stops?Yes. As you'd (probably) like it to do if you switch into runlevel 1. Normally, you want as few processes running as possible there.> Or they are required to actually down the task when I > reboot the OS?They're not _required_, as obviously nothing's going to be running when the machine's off, and it works now, without them. But Samba may have state that it doesn't have a chance to save, if it's killed by the OS going down. -- -eben eQbWeEnR@gTaYtUeI.nOePt home.tampabay.rr.com/hactar Logic is a systematic method of coming to the wrong conclusion with confidence.