The Samba-Bugzilla – Bug 12371
Error in 50.samba-eventscript
Last modified: 2016-10-11 00:17:31 UTC
I tried to start samba on Ubunut-server 16.04 via ctdb. Start failed with error:
2016/10/06 18:31:32.357887 : 50.samba: Failed to start
samba.service: Unit samba.service is masked.
I figured out, that Ubuntu is not using samba.service to start smbd and nmbd, insted smbd.service and nmbd.service is used.
So I change /etc/ctdb/events.d/50.samba as followed:
after that Samba will start via CTDB. I think it will be the same on debian-systems, so the script should be changed
Andrew, given that you're a Debian maintainer (or similar) for Samba, can you please comment on how CTDB should be starting/stopping smb and nmb services?
Until now we have used the "samba" initscript. However, it looks to me as though Debian as if the "samba" initscript is probably deprecated from jessie onwards, so we should be using "smbd" and "nmbd" these days.
Stefan, you know you can just do this in your CTDB configuration file?
We'll obviously fix the default if a change makes sense, but you don't actually need to edit the event script. :-)