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#31957 - [samba] systemd service file standard input is not a socket, assuming -D option

Attached to Project: Arch Linux
Opened by Simon Wilper (sxw) - Sunday, 14 October 2012, 18:28 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 27 January 2013, 11:15 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Starting Samba via the systemd unit /usr/lib/systemd/system/smbd.service gives me the following message in the journal:

[2012/10/14 19:27:58.938553, 0] smbd/server.c:1109(main)
standard input is not a socket, assuming -D option

In fact the start line in the unit reads

ExecStart=/usr/sbin/smbd -F

what is according to the manpage the correct option since it allows monitoring. Replacing the -F with a -D prevents the service to start.

So, is there an option that starts normally without printing the error message?
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Sunday, 27 January 2013, 11:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.6.11-1
Comment by Leonid Isaev (lisaev) - Thursday, 20 December 2012, 19:37 GMT
Confirmed.

But regarding "-D" workaround... In order to make the service work, you can't just replace "-F" with "-D" -- you also need to add "Type=Forking" and a proper PID handling to the [Service] section.
Comment by Simon Wilper (sxw) - Saturday, 22 December 2012, 12:11 GMT
Thanks, Leonid!

It works with this Service section:

[Service]
Type=forking
PIDFile=/var/run/samba/smbd.pid
ExecStart=/usr/sbin/smbd -D
Comment by WhoTouchaMySpageth! (tuxfusion) - Thursday, 27 December 2012, 12:15 GMT
Will this be fixed ?
And why is the service file not in /etc ? my system does not autocomplete that specific folder , I guess aswell as thousands of other systems.
The wiki for systemd does not mention /usr/lib specificly.
Comment by Simon Wilper (sxw) - Friday, 28 December 2012, 18:39 GMT
Steffen,

I am not quite sure what you mean. The service files in question are provided by the samba package and the patch should be applied there if I'm not mistaken:

> pacman -Ql samba | grep service
samba /usr/lib/systemd/system/nmbd.service
samba /usr/lib/systemd/system/smbd.service
samba /usr/lib/systemd/system/winbindd.service

Loading...