Bug 44088 - service cups start does not check/create printers
service cups start does not check/create printers
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Printserver
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Felix Botner
Stefan Gohmann
: interim-4
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-27 16:09 CEST by Felix Botner
Modified: 2017-04-04 18:29 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2017-03-27 16:09:42 CEST
The old init script checked /var/cache/univention-printserver for scripts and executed them. This has been used as a kind of failover for the cups listener if the cups server has been stopped. The listener then created script in var/cache/univention-printserver to e.g. create printer and the next time cups has been started, the printer was created.

This is no longer supported in the new cups systemd service (but would be easy to add as ExecPost ...)
Comment 1 Felix Botner univentionstaff 2017-03-27 17:41:37 CEST
Added

ExecStartPost=-/usr/lib/univention-printserver/univention-cups-init

to /lib/systemd/system/cups.service (cups patch)

Added /usr/lib/univention-printserver/univention-cups-init to univention-printserver (this script checks the /var/cache/univention-printserver dir)
Comment 2 Stefan Gohmann univentionstaff 2017-03-27 21:06:04 CEST
Yes, it works again.
Comment 3 Stefan Gohmann univentionstaff 2017-04-04 18:29:02 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".