Bug 12371 - Error in 50.samba-eventscript
Error in 50.samba-eventscript
Product: Samba 4.1 and newer
Classification: Unclassified
Component: CTDB
All Linux
: P5 normal
: ---
Assigned To: Martin Schwenke
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2016-10-10 14:49 UTC by Stefan Kania
Modified: 2016-10-11 00:17 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Kania 2016-10-10 14:49:08 UTC
I tried to start samba on Ubunut-server 16.04 via ctdb. Start failed with error:
2016/10/06 18:31:32.357887 [29921]: 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
Comment 1 Martin Schwenke 2016-10-11 00:11:12 UTC
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.

Comment 2 Martin Schwenke 2016-10-11 00:17:31 UTC
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.  :-)