Do anyone knows how to autorun samba when pc start up?
I have a linux machine and i have a printer shared on it.When i reboot the computer shared printer is missing when im connecting again using windows machine, so i need to run command in terminal [CODE]samba restart[/CODE.
after running this command shared printer(SMB) is visible. Thank in advance please help. Aries |
You dont say what distribution you are using, but your profile box says Mandriva, and a quick google suggests to me that Mandriva uses the same init method as CentOS, ie: chkconfig
So to answer your thread title.. Code:
# chkconfig samba on I would imagine that the problem is that samba isn't starting on reboot. But when you restart samba, you would likely be getting a [Fail] on stopping it, since it isn't already running. |
If you have "ntsysv" tool installed then you can manage all the services at the same time. You can decide which service should start after boot and which service shouldn't.
Command is , # ntsysv |
Quote:
|
OP, you didn't say what happened when you ran
Code:
chkconfig samba on Under RHEL it will be Code:
chkconfig smb on |
Hello,
Please run the following script manually and check for error messages: # /etc/rc.d/init.d/smb stop (to make sure it's not running) # /etc/rc.d/init.d/smb start If it does not start up, check the logs, specifically /var/log/syslog and /var/log/samba/logsmbd and /var/log/samba/log.nmbd. If you do not see much there , increase the logging level by putting: log level = 3 (or even higher)in the global section of /etc/smb.conf Once you have got the script starting manually, you should manipulate the start-up scripts with chkconfig (rather than making the links yourself). One possible problem is that the script checks to see if networking is up, otherwise it exits. If you have got smb starting before network, then this could be your problem. If you use chkconfig it will get the order correct. # chkconfig smb on |
All times are GMT -5. The time now is 10:45 PM. |