How to start smbd nmbd and winbindd with openrc
Posted: Tue Jul 09, 2019 9:37 pm
Need some help getting samba services (smbd, nmbd, and winbindd) to start up on boot.
I am currently getting them started by a cron script.
The sanba_server script in /usr/local/etc/init.d is working as I expect it to - but is not being used by openrc
root@ghost:~ # /usr/local/etc/rc.d/samba_server status
nmbd is running as pid 1763.
smbd is running as pid 1771.
winbindd is running as pid 1776.
openrc is using /usr/local/etc/init.d/samba_server script - which is broken.
Is the openrc integration for samba_server not fully baked?
root@ghost:~ # /usr/local/etc/init.d/samba_server status
* start-stop-daemon: /usr/local/sbin/nmbd is already running
* start-stop-daemon: /usr/local/sbin/smbd is already running
* start-stop-daemon: /usr/local/sbin/winbindd is already running
root@ghost:~ # /usr/local/etc/init.d/samba_server stop
* WARNING: samba_server is already stopped
root@ghost:~ # /usr/local/etc/init.d/samba_server start
Performing sanity check on Samba configuration: OK
* start-stop-daemon: /usr/local/sbin/nmbd is already running
* start-stop-daemon: /usr/local/sbin/smbd is already running
* start-stop-daemon: /usr/local/sbin/winbindd is already running
* ERROR: samba_server failed to start
root@ghost:~ # /usr/local/etc/init.d/samba_server zap
* Manually resetting samba_server to stopped state
root@ghost:~ # /usr/local/etc/rc.d/samba_server status
nmbd is running as pid 1763.
smbd is running as pid 1771.
winbindd is running as pid 1776.
root@ghost:~ #
What am I missing?
Thanks.
I am currently getting them started by a cron script.
The sanba_server script in /usr/local/etc/init.d is working as I expect it to - but is not being used by openrc
root@ghost:~ # /usr/local/etc/rc.d/samba_server status
nmbd is running as pid 1763.
smbd is running as pid 1771.
winbindd is running as pid 1776.
openrc is using /usr/local/etc/init.d/samba_server script - which is broken.
Is the openrc integration for samba_server not fully baked?
root@ghost:~ # /usr/local/etc/init.d/samba_server status
* start-stop-daemon: /usr/local/sbin/nmbd is already running
* start-stop-daemon: /usr/local/sbin/smbd is already running
* start-stop-daemon: /usr/local/sbin/winbindd is already running
root@ghost:~ # /usr/local/etc/init.d/samba_server stop
* WARNING: samba_server is already stopped
root@ghost:~ # /usr/local/etc/init.d/samba_server start
Performing sanity check on Samba configuration: OK
* start-stop-daemon: /usr/local/sbin/nmbd is already running
* start-stop-daemon: /usr/local/sbin/smbd is already running
* start-stop-daemon: /usr/local/sbin/winbindd is already running
* ERROR: samba_server failed to start
root@ghost:~ # /usr/local/etc/init.d/samba_server zap
* Manually resetting samba_server to stopped state
root@ghost:~ # /usr/local/etc/rc.d/samba_server status
nmbd is running as pid 1763.
smbd is running as pid 1771.
winbindd is running as pid 1776.
root@ghost:~ #
What am I missing?
Thanks.