Rowland penny
2021-Mar-23 15:49 UTC
[Samba] Samba Compiled From Source, Where Are The SystemD Unit Files?
On 23/03/2021 15:32, Dachshund Digital via samba wrote:> I am doing 'make install' step as I write this question.? Via Google, > I only seem to find examples of the unit files for control/support AD > features, but no example for how smbd, nmbd, etc., unit files should > be staged, or created?? Even the SambaWiki and Samba.org seem to > ignore this subject?? Am I just not finding such?? This should be > pretty straight-forward right? > > -DD > >Samba does not supply systemd service files, this is left to package maintainers. The easiest way would be to use your distro's files, possibly modified for your PREFIX. Rowland
Dachshund Digital
2021-Mar-23 17:16 UTC
[Samba] Samba Compiled From Source, Where Are The SystemD Unit Files?
Figured that might be the case, I copied the Debian 10 unit files for smbd and nmbd, make the applicable changes, then discovered that smbd is is failing after compile, make, make test, make install all successful (on Pi 4 native, not a cross compile).? So am a bit surprised.? Environment is Raspberry Pi OS 32bit for ARMv7 HF.? Is there any thing special that needs to be done for Pi devices when compiling from source?? Beyond the obvious required packages before compile?? Would have expected ./configure to throw a fit if there was something special needed specific for Pi? Unfortunately, the Debian 10 buster variant of Raspberry Pi OS only has a Samba 4.9 version level and even the yet to be released (as stable) Raspberry Pi OS based on Bullseye only has 4.12 included.? So I guess the package maintainers are a bit behind the curve given 4.14 is available as stable.? What started be down this path was the need for profiling support, which is not included by default in the Debian 10 packages. -DD On 03/23/2021 08:49, Rowland penny via samba wrote:> On 23/03/2021 15:32, Dachshund Digital via samba wrote: >> I am doing 'make install' step as I write this question.? Via Google, >> I only seem to find examples of the unit files for control/support AD >> features, but no example for how smbd, nmbd, etc., unit files should >> be staged, or created? Even the SambaWiki and Samba.org seem to >> ignore this subject? Am I just not finding such?? This should be >> pretty straight-forward right? >> >> -DD >> >> > > Samba does not supply systemd service files, this is left to package > maintainers. The easiest way would be to use your distro's files, > possibly modified for your PREFIX. > > Rowland > > >
Norbert Hanke
2021-Mar-23 17:25 UTC
[Samba] Samba Compiled From Source, Where Are The SystemD Unit Files?
The samba source tree holds templates for systemd files in directory packaging/systemd : > find samba-4.14.0/packaging/systemd -ls|sed -e "s/pi /user/" -e "s/pi?? /group/" ?? 533166????? 4 drwxr-xr-x?? 2 user???? group??????? 4096 Mar 23 18:15 samba-4.14.0/packaging/systemd ?? 533170????? 4 -rw-r--r--?? 1 user???? group???????? 443 Jan 21 14:20 samba-4.14.0/packaging/systemd/samba.service.in ?? 533172????? 4 -rw-r--r--?? 1 user???? group???????? 485 Jan 21 14:20 samba-4.14.0/packaging/systemd/smb.service.in ?? 533173????? 4 -rw-r--r--?? 1 user???? group???????? 424 Jan 21 14:20 samba-4.14.0/packaging/systemd/winbind.service.in ?? 533171????? 4 -rw-r--r--?? 1 user???? group???????? 428 Jan 21 14:20 samba-4.14.0/packaging/systemd/samba.sysconfig ?? 533168????? 4 -rw-r--r--?? 1 user???? group???????? 439 Jan 21 14:20 samba-4.14.0/packaging/systemd/nmb.service.in ?? 533169????? 4 -rw-r--r--?? 1 user???? group????????? 32 Jan 21 14:20 samba-4.14.0/packaging/systemd/samba.conf.tmp ?? 533167????? 4 -rw-r--r--?? 1 user???? group???????? 670 Jan 21 14:20 samba-4.14.0/packaging/systemd/README They are not ready to use but might serve as a starting point. regards, Norbert On 23.03.2021 16:49, Rowland penny via samba wrote:> On 23/03/2021 15:32, Dachshund Digital via samba wrote: >> I am doing 'make install' step as I write this question.? Via Google, >> I only seem to find examples of the unit files for control/support AD >> features, but no example for how smbd, nmbd, etc., unit files should >> be staged, or created? Even the SambaWiki and Samba.org seem to >> ignore this subject? Am I just not finding such?? This should be >> pretty straight-forward right? >> >> -DD >> >> > > Samba does not supply systemd service files, this is left to package > maintainers. The easiest way would be to use your distro's files, > possibly modified for your PREFIX. > > Rowland > > >