How to start smb server when reboot?
Hieb, Michael
Hieb at WESTPORT.MSMAIL.AIGFPC.COM
Mon Oct 4 12:08:26 GMT 1999
The file smb is for use in the sysvinit scheme. I would imagaine you
start in either init mode 3 (console mode) or initi mode 5 (xdm). So cd
in /etc/init/rc3.d and /etc/init/rc5.d and make the following links...
[hieb at lnxwp1 scripts]$ ls -la /etc/rc.d/rc3.d/*smb*
lrwxrwxrwx 1 root root 13 Sep 1 13:51
/etc/rc.d/rc3.d/S99smb -> ../init.d/smb
[hieb at lnxwp1 scripts]$ ls -la /etc/rc.d/rc5.d/*smb*
lrwxrwxrwx 1 root root 13 Sep 1 13:51
/etc/rc.d/rc5.d/S99smb -> ../init.d/smb
Note the 'S' means start, the 99 means the order the service will be
started relative to the other servies in this init mode. I typically add
new services at a higher number than existing services so as to not
introduce missing dependencies at boot time.
You can also put the service shutdown in init mode 6 (shutdown)
[hieb at lnxwp1 scripts]$ ls -la /etc/rc.d/rc6.d/*smb*
lrwxrwxrwx 1 root root 13 Sep 1 13:52
/etc/rc.d/rc6.d/K001smb -> ../init.d/smb
Here the 'K' is for kill, the number 001 again specifies the order the
servise will be shutdown relative to other services. Again I typically
shutdown new services before I shutdown existing services so as to not
introduce missing dependencies at shutdown.
HTH, Michael
Date: Sat, 2 Oct 1999 20:46:59 +0800
From: Zhou Senqiang <zhousenq at comp.nus.edu.sg
<mailto:zhousenq at comp.nus.edu.sg> >
To: samba at samba.org <mailto:samba at samba.org>
Subject: How to start smb server when reboot?
Message-ID: <99100220523102.00237 at cf-dblab4
<mailto:99100220523102.00237 at cf-dblab4> >
Content-Type: text/plain
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Hi,
I installed Samba 2.0.3 on Linux 2.2.5. Every time I reboot system I
found the smb has not been started. But in the directory /etc/rc.d, the
file "smb" exists. When I run "smb restart",after a while, the samba
server is ok. I wonder why the samba server is not up when system
reboot. Thanks a lot.
Followed is the content of the file "smb":
[deleted...]
More information about the samba
mailing list