[Samba] Samba Compiled From Source, Where Are The SystemD Unit Files?

Norbert Hanke norbert.hanke at gmx.ch
Tue Mar 23 17:25:54 UTC 2021


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
>
>
>



More information about the samba mailing list