Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 444016

Summary: net-fs/samba-4.0.0_rc4 wrong init script
Product: Gentoo Linux Reporter: Aleksandr Yakimov <yaleks>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED FIXED    
Severity: normal CC: polynomial-c, torsten
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /etc/init.d/samba
/etc/conf.d/samba
Patch for the previously supplied samba4.confd

Description Aleksandr Yakimov 2012-11-20 11:29:48 UTC
Created attachment 330052 [details]
/etc/init.d/samba

Provided by net-fs/samba-4.0.0_rc4 init script not situable for full samba-3 replacement.
Comment 1 Aleksandr Yakimov 2012-11-20 11:31:46 UTC
Created attachment 330054 [details]
/etc/conf.d/samba
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-11-25 00:05:21 UTC
+*samba-4.0.0_rc5 (24 Nov 2012)
+
+  24 Nov 2012; Lars Wendler <polynomial-c@gentoo.org> +files/4.0/samba4.confd,
+  +files/4.0/samba4.initd-r1, -samba-4.0.0_rc3.ebuild, +samba-4.0.0_rc5.ebuild:
+  non-maintainer commit: Version bump. Removed old. Fixed samba4 init scripts
+  (bug #444016). Thanks to Aleksandr Yakimov who reported the bug and provided
+  the files.
+
Comment 3 Torsten Kurbad 2012-11-29 12:17:27 UTC
Created attachment 330922 [details, diff]
Patch for the previously supplied samba4.confd

(In reply to comment #1)
> Created attachment 330054 [details]
> /etc/conf.d/samba

Sorry for being a bit picky, but the advice about filling up daemon_list in this file is wrong. You can't just add "samba4", you have to replace the previous entries. The reason for that is that samba4 controls both smbd and nmbd by itself, since the daemons share common network sockets.

I tried to update the conf.d's comment to elaborate that. Feel free to change the wording, but please, leave the message intact. :-)
Comment 4 Aleksandr Yakimov 2012-11-29 20:32:00 UTC
(In reply to comment #3)
> Sorry for being a bit picky, but the advice about filling up daemon_list in
> this file is wrong. You can't just add "samba4", you have to replace the
> previous entries. The reason for that is that samba4 controls both smbd and
> nmbd by itself, since the daemons share common network sockets.

That's right - samba4 only for AD controller. smbd&nmbd it's classic samba3 behavior.
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-11-30 11:32:09 UTC
+  30 Nov 2012; Lars Wendler <polynomial-c@gentoo.org> files/4.0/samba4.confd:
+  Fixed comments in conf.d file. Thanks to Torsten Kurbad for providing a patch
+  in bug #444016.
+