+++ This bug was initially created as a clone of Bug #209660 +++ This clause in /usr/local/etc/rc.d/samba_server (lines 120-122): > if [ -n "${_rc_prefix}" -a "${_rc_prefix}" = "one" ] || [ -n "${rc_force}" ] || [ -n "${rc_fast}" ]; then > force_run=yes > fi forces nmbd and winbindd to be started regardless of the values of nmbd_enable and winbindd_enable in /etc/rc.conf. If one wants to start samba_server manually (without having set samba_server_enable="YES") after boot they have no option but to use 'onestart' but then that will ignore disabling of nmbd and winbindd in rc.conf; even in situations where 'disable netbios = yes' is explicitly set in smb4.conf. This leaves one with no option to start only smbd manually after boot without forcibly launching nmbd and winbindd which many not be desired in some scenarios. This was checked with samba_server script shipped with samba41-4.1.22_2.
Created attachment 226466 [details] patch to get the same behavour with start or onestart command
(In reply to Emrion from comment #1) This patch is intended to be applied on /usr/local/etc/rc.d/samba_server