[cups-devel] Possibility of org.cups.cupsd-server.service systemd unit?

Zdenek Dohnal zdohnal at redhat.com
Thu Apr 9 02:12:12 PDT 2020


Hi all,

I was thinking about the issue https://github.com/apple/cups/issues/5708
- the proposed fix - adding multi-user.target to org.cups.cupsd.service
- would cause cupsd being run every time when the service is enabled,
which is unnecessary on client machines, but welcomed on the print
servers - because they need to have the service running because of CUPS
web ui. org.cups.cupsd.path doesn't provide such functionality at the
start, because it checks for org.cups.cupsd file, which is created by
cupsd -> so it needs manual start of cupsd to start to work as intended.

So I thought about new systemd unit - org.cups.cupsd-server.service -
which would conflict with existing units and have
WantedBy=multi-user.target. So sysadmins would use this unit on their
servers and they wouldn't need to explicitly start this unit (when the
unit is enabled) and the unit will be automatically started because of
WantedBy=multi-user.target.

The previous units will be still there to provide the current
functionality - to start the org.cups.cupsd.service only when needed
(when there is an USB printer, cupsd has set browsing/cups web
ui/pending jobs or if there is a request)

What do you think about it? Is it usable to have such unit? If so, would
it be possible to have it in CUPS?

Thank you for opinions in advance!

Have a nice day,


Zdenek

-- 
Zdenek Dohnal
Software Engineer
Red Hat Czech - Brno TPB-C




More information about the cups-devel mailing list