Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#34504 - [samba] smbd socket activation fails

Attached to Project: Arch Linux
Opened by Kimmy Lindvall (aa47f8) - Thursday, 28 March 2013, 11:52 GMT
Last edited by Tobias Powalowski (tpowa) - Friday, 05 April 2013, 14:04 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

smbd needs the -F flag for socket activation. smbd@.service uses the -D flag, which does not work.

Additional info:
* package version(s)
extra/samba 3.6.13-1

Below is a working smbd@.service.

[Unit]
Description=Samba SMB/CIFS server instance

[Service]
ExecStart=/usr/sbin/smbd -F
ExecReload=/bin/kill -HUP $MAINPID
StandardInput=socket
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Friday, 05 April 2013, 14:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  4.0.4-2
Comment by Tobias Powalowski (tpowa) - Friday, 29 March 2013, 11:23 GMT
https://bugs.archlinux.org/task/31957
This was changed due to this bug.
Comment by Tobias Powalowski (tpowa) - Friday, 29 March 2013, 11:25 GMT
Ah sorry misread you mean the @ service file.
Fixed in svn will be on next 4.0.x release.
Comment by Kimmy Lindvall (aa47f8) - Friday, 29 March 2013, 14:35 GMT
I'm sorry, I was unclear. Since with -F it doesn't fork, the lines

Type=forking
PIDFile=/var/run/smbd.pid

should also be removed. Otherwise, systemd thinks the unit failed.

Loading...