Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I installed Samba on my debian squeeze server but it doesnt start when I reboot it, I have to run it manually for it to start.

How can I make it so that when I start my server, samba starts automatically. I would rather do it without installing software

share|improve this question
add comment

3 Answers 3

up vote 2 down vote accepted

As root enter:

update-rc.d samba defaults

This will install samba for the default runlevels

share|improve this answer
    
Thank you. That works –  user1738522 Nov 3 '12 at 14:39
add comment

You have to add the init script which is starting the service smb from /etc/init.d to your /etc/rcX.d. Where X is your runlevel There is a program chkconfig which you first may have to install from the debian repository allowing you to do this quite easy (I am just not sure whether it is in the default installation):

apt-get install chkconfig

Now you can add the service smb to start with your system by typing as root:

chkconfig smb 3
share|improve this answer
add comment

Does chkconfig command work on Debian?

chkconfig smb on

Above command is tested on RHEL 6.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.