Problem
When the machine is rebooted, some of the printers are missing and the only way to bring them back is to re-create them.
Alternatively, on trying to add a new printer to the system the following message is reported:
UX:accept: ERROR: Destination "printer" is unknown to the LP print service.
Cause
There is an empty directory in /usr/spool/lp/admins/lp/printers. This directory stores information used by init when the system is booting. The files store information about the device being used, the interface being used, possible stty settings.
The information for the lpstat command is partially stored in /usr/spool/lp/admins/lp/printers/<printername>/configuration.
Solution
To work around this problem:# cd /usr/spool/lp/admins/lp/printers
# l -R | moreThis will recursively list all of the directories and their
contents. Note which directories are empty or corrupt.To remove the printer, use:# /usr/lib/lpadmin -x<printername>or, for ODT3 use the sysadmsh(ADM) command:
# sysadmshand follow the menu selections:Printers -> configure -> removefor OpenServer 5 use the SCOadmin utility:
# scoadmin Printer Managerand follow the menu selections:Printer -> DeleteIf the printer is not known to the print service, remove the directory manually:
# cd /usr/spool/lp/admins/lp/printers
# rm -rf <printer>The empty directory may exist because the printer files were
manually removed but the directory wasn't. If the printer was
set up as a remote printer, the only way to remove it is through
a manual deletion. Possibly the directory was not removed at
that time.