Bug 4071 - [cups] when cupsd is started by systemd, it fails to listen on port 631 since it is not released by portreserve
Summary: [cups] when cupsd is started by systemd, it fails to listen on port 631 since...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: release_blocker major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-08 16:22 CET by Olivier Blin
Modified: 2012-02-28 17:44 CET (History)
3 users (show)

See Also:
Source RPM: cups
CVE:
Status comment:


Attachments

Description Olivier Blin 2012-01-08 16:22:01 CET
In the migration to systemd, the cups startup has been overly simplified.
It does not call anymore "portrelease 631", so the cups daemon can not listen on port 631 which is still held by portreserve.
Olivier Blin 2012-01-08 16:22:35 CET

CC: (none) => mageia

Comment 1 Colin Guthrie 2012-01-08 20:26:27 CET
Ahh good catch... There should be an ExecPre= added to the main unit I guess....

Of course more generally, we should probably start phasing out portreserve... If systemd does all the port listening early on then there is no problem which portreserve solves... but that's probably a slightly bigger job :)
Comment 2 Colin Guthrie 2012-01-08 23:21:43 CET
Sorry, I meant "StartExecPre=portrelease 631"

But, having had a look at the package, I think we should just drop this port reservation thing in cups, or at least move it to a subpackage that people can install with sysvinit if they still want to. It would very much be a manual process.

As previously mentioned, the fact that systemd should open the port very early on should mean that all will be well without the need for the portreserve stuff.

WDYT? I did patch the systemd unit for cups but then thought better off it. I just get the feeling that things would be odd if we carried on using port reservation for cups (and IIRC I was the person who originally requested some magic here as some strange NFS thing was preventing cups from starting on some of my machines - long time ago now tho' :D)
Comment 3 diego w 2012-02-26 21:32:57 CET
it seems this has been fixed, I can open http[s]://localhost:631 again with

cups-1.5.2-1.mga2.src.rpm
systemd-43-1.mga2.src.rpm
initscripts-9.34-5.mga2.src.rpm

CC: (none) => smiling.diego

Comment 4 Colin Guthrie 2012-02-26 21:59:15 CET
Oh I forgot to update this bug.

I updated cups a while ago and also removed the portreserve stuff from it.

So yeah I'll close it now. Thanks for pinging :)

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 5 diego w 2012-02-28 17:44:10 CET
just trying to be helpful :)

Note You need to log in before you can comment on or make changes to this bug.