Bug 44137

Summary: univention-samba: /etc/init.d/samba UCR template is incompatible with systemd
Product: UCS Reporter: Arvid Requate <requate>
Component: SambaAssignee: Samba maintainers <samba-maintainers>
Status: NEW --- QA Contact: Samba maintainers <samba-maintainers>
Severity: minor    
Priority: P5 CC: best, hahn, steuwer, troeder, ulmer
Version: UCS 5.0Keywords: systemd
Target Milestone: UCS 5.0-0-errata   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=44237
https://forge.univention.org/bugzilla/show_bug.cgi?id=56187
What kind of report is it?: Development Internal What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:
Bug Depends on:    
Bug Blocks: 43691    

Description Arvid Requate univentionstaff 2017-03-29 15:30:12 CEST
The UCR template for /etc/init.d/samba in univention-samba (not samba4) is incompatible with systemd, because it loads the lsb/init-functions. Actually it's a pure helper script that should be masked for systemd

Bug 43874 added a "# pidfile: /var/run/samba/smbd.pid" but that ties that script to the smbd process, while it controls both, smbd and nmbd.

We should remove the template so the standard /etc/init.d/samba helper script included in the Debian "samba" package is used instead,, just like it is done on systems with univention-samba4.


+++ This bug was initially created as a clone of Bug #44118 +++
Comment 1 Philipp Hahn univentionstaff 2021-12-06 12:53:35 CET
For Samba-AD there is Bug #44237 comment 7