Bug 44137 - univention-samba: /etc/init.d/samba UCR template is incompatible with systemd
univention-samba: /etc/init.d/samba UCR template is incompatible with systemd
Status: NEW
Product: UCS
Classification: Unclassified
Component: Samba
UCS 5.0
Other Linux
: P5 minor (vote)
: UCS 5.0-0-errata
Assigned To: Samba maintainers
Samba maintainers
: systemd
Depends on:
Blocks: 43691
  Show dependency treegraph
 
Reported: 2017-03-29 15:30 CEST by Arvid Requate
Modified: 2023-06-22 20:17 CEST (History)
5 users (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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