14.2.2. Starting and Stopping Samba
service smb start
net joincommand before starting the
service smb stop
restartoption is a quick way of stopping and then starting Samba. This is the most reliable way to make configuration changes take effect after editing the configuration file for Samba. Note that the restart option starts the daemon even if it was not running originally.
service smb restart
condrestart(conditional restart) option only starts
smbon the condition that it is currently running. This option is useful for scripts, because it does not start the daemon if it is not running.
smb.conffile is changed, Samba automatically reloads it after a few minutes. Issuing a manual
reloadis just as affective.
service smb condrestart
smb.conffile can be useful in case of a failed automatic reload by the
smbservice. To ensure that the Samba server configuration file is reloaded without restarting the service, type the following command as root:
service smb reload
smbservice does not start automatically at boot time. To configure Samba to start at boot time, use an initscript utility, such as
/usr/sbin/ntsysv, or the Services Configuration Tool program. Refer to the chapter titled Controlling Access to Services in the System Administrators Guide for more information regarding these tools.