about summary refs log tree commit diff
path: root/nixos/modules/services/printing
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2022-11-28 14:50:41 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2022-12-07 15:57:44 +0100
commit47d9e7d3d7d8ad19e29be1445171726bf7d602b6 (patch)
treee654390b8ea3b9e72caa701700516b983d788ab0 /nixos/modules/services/printing
parenta5eb3b03ffff6e709412c7f3e1e57e04df2349ed (diff)
downloadnixlib-47d9e7d3d7d8ad19e29be1445171726bf7d602b6.tar
nixlib-47d9e7d3d7d8ad19e29be1445171726bf7d602b6.tar.gz
nixlib-47d9e7d3d7d8ad19e29be1445171726bf7d602b6.tar.bz2
nixlib-47d9e7d3d7d8ad19e29be1445171726bf7d602b6.tar.lz
nixlib-47d9e7d3d7d8ad19e29be1445171726bf7d602b6.tar.xz
nixlib-47d9e7d3d7d8ad19e29be1445171726bf7d602b6.tar.zst
nixlib-47d9e7d3d7d8ad19e29be1445171726bf7d602b6.zip
nixos/hardware/printers: stop cupsd when unneeded
If socket activation is enable (the default) and printers are configured
declaratively, the ensure-printers service will always start cupsd and
leave it running, thus defeating the point of socket activation.

With this change ensure-printers continues to start the cups.service at
boot, but automatically stops it afterwards if socket activation is
enabled.

Note: Later restarts of ensure-printers will also restart cupsd, but
it's not an issue since it will be reactivate, if necessary.
Diffstat (limited to 'nixos/modules/services/printing')
0 files changed, 0 insertions, 0 deletions