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!
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!
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
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
|
DetailsDescription:
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
Sunday, 27 January 2013, 11:15 GMT
Reason for closing: Fixed
Additional comments about closing: 3.6.11-1
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.
It works with this Service section:
[Service]
Type=forking
PIDFile=/var/run/samba/smbd.pid
ExecStart=/usr/sbin/smbd -D
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.
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