michaelrsweet / pappl

PAPPL - Printer Application Framework
https://www.msweet.org/pappl
Apache License 2.0
307 stars 49 forks source link

"Paused" state not persisted #286

Closed andreaskem closed 1 year ago

andreaskem commented 1 year ago

Describe the bug This bug was encountered using lprint but I was sent here to report the actual issue: When pausing a printer (or its associated queue), its state is not persisted across service restarts.

To Reproduce

$ lprint pause -d lpne3
$ lprint status -d lpne3
Running, stopped since Thu, 31 Aug 2023 05:47:00 GMTpaused.
$ sudo systemctl restart lprint
$ lprint status -d lpne3
Running, idle since Thu, 31 Aug 2023 05:48:29 GMT.

Expected behavior A paused printer should not be restarted by a reboot or service restart. For example, a printer might suddenly start printing many jobs after a system reboot.

System Information:

Additional context Pausing a printer does not seem to have an effect on /etc/lprint.conf, where I assume its state should be persisted.

michaelrsweet commented 1 year ago

[master caca78c] When multiple queues are supported, preserve the paused state of each printer (Issue #286)