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

Zdenek Dohnal <[email protected]> Thu, 9 Apr 2020 11:12:12 +0200
Newsgroups gmane.comp.printing.cups.devel
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============2098636335==
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="F4G79xHWuRFMHRqRgNoAQ9qPzM3ydRBqv"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--F4G79xHWuRFMHRqRgNoAQ9qPzM3ydRBqv
Content-Type: multipart/mixed; boundary="rcH3CazIIJGzGhzuqKqncKsISCf2eH8XV"

--rcH3CazIIJGzGhzuqKqncKsISCf2eH8XV
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US

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=3Dmulti-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=3Dmulti-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

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



--rcH3CazIIJGzGhzuqKqncKsISCf2eH8XV--

--F4G79xHWuRFMHRqRgNoAQ9qPzM3ydRBqv--


--===============2098636335==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KY3Vwcy1kZXZl
bCBtYWlsaW5nIGxpc3QKY3Vwcy1kZXZlbEBjdXBzLm9yZwpodHRwczovL2xpc3RzLmN1cHMub3Jn
L21haWxtYW4vbGlzdGluZm8vY3Vwcy1kZXZlbAo=

--===============2098636335==--