Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
"Port 631" binds to localhost only (systemd regression) #4497
Moving from CUPS 1.7.5 to 2.0.0, I noticed that the "Port 631" directive in cupsd.conf no longer makes the print server accessible from the network.
cupsd appears to be binding to localhost only, which I don't believe should be the case.
This is happening on Arch Linux x86_64, running systemd 216 and CUPS 2.0.0.
$ sudo ss -tlnp | grep 631
CUPS.org User: foutrelis
Please find the requested log file attached.
The following lines seem to be of interest:
I [08/Oct/2014:19:29:09 +0300] Listening to [v1.::1]:631 on fd 4...
CUPS.org User: lnussel
You could omit listening on the tcp sockets and only put the unix domain socket in the service file. That will make cupsd listen on the configured ports once it starts. Disadvantage is that you can't go to localhost:631 anymore to auto launch cupsd.
CUPS.org User: mike
The consensus on the printing-architecture list is to remove the IP sockets from the .socket file and keep cupsd running if the web interface is enabled, just as it does now when there are pending jobs or printer sharing is enabled.
Running "lpstat" is enough to start cupsd otherwise...
--- scheduler/main.c (revision 12213)
+# ifdef HAVE_SYSTEMD
--- scheduler/org.cups.cupsd.socket.in (revision 12213)