Re: samba config problems



On Thursday 14 June 2007 18:51, Andrew Falanga wrote:
On 6/14/07, Reid Linnemann <lreid@xxxxxxxxxxxxxx> wrote:
Don't forget to cc: freebsd-questions@xxxxxxxxxxx

Once again I apologize to the forum. I keep forgetting to do this.

The rc script at /usr/local/etc/rc.d/samba follows the FreeBSD rcng
scheme, if the rcvar 'samba_enable' is not set to 'yes', then the script
will not start or stop the samba process.

Run the script without any commands to see usage. To check the status of
rcvars that control the script's behavior, run the script with the
'rcvar' argument; e.g.

~/> /usr/local/etc/rc.d/samba rcvar
# samba
$samba_enable=YES
# nmbd
$nmbd_enable=YES
# smbd
$smbd_enable=YES
# winbindd
$winbindd_enable=NO

Note that nothign is stopping you from running smbd and nmbd manually,
the rc control script simply automates the control of the daemon for you.

Ah, thank you. Very enlightening. I guess I'll have to read through
that section of the Handbook to make sure I understand how all that
works together. I finally did get it working by starting the smbd
"manually."

Thanks,
Andy

Just to add to this: if you want to start the service as a one-off without
putting the enabling variable in /etc/rc.conf, use onestart instead of start
(this also works with stop|onestop and status|onestatus).

Jonathan
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: samba config problems
    ... will not start or stop the samba process. ... Run the script without any commands to see usage. ... 'rcvar' argument; e.g. ... Note that nothign is stopping you from running smbd and nmbd manually, ...
    (freebsd-questions)
  • Re: samba config problems
    ... will not start or stop the samba process. ... Run the script without any commands to see usage. ... 'rcvar' argument; e.g. ... Note that nothign is stopping you from running smbd and nmbd manually, ...
    (freebsd-questions)
  • Re: not adding daemons to rc.conf
    ... This will, well, force the script to run, even if it's not explicitly ... force Skip the checks for rcvar being set to ``YES'', ... tests failing, and always returns a zero exit status. ... Karol Kwiatkowski <freebsd at orchid dot homeunix dot org> ...
    (freebsd-questions)