[cups.general] When does cupsd write changes to config files?

Michael Sweet mike at easysw.com
Wed Feb 7 09:08:58 PST 2007


Johannes Meixner wrote:
> Hello,
> 
> as far as I understand it, "lpadmin -h server ..." and
> "lpoptions -h server ..." talk only to the cupsd running
> on the server but then it is up to the cupsd when it is
> actually written to the config files.

lpadmin communicates with the server, and all changes are stored on
the server in the printers.conf, classes.conf, and/or PPD file as
appropriate.  These changes are written immediately.

lpoptions reads and writes the /etc/cups/lpoptions and
~/.cups/lpoptions files.  Changes are written immediately by
the lpoptions program via the cupsSetDests() function.

> Is there an assured maximum amount of time until config files
> get updated?

Config files are updated immediately, and you can assume that
the updated files will be available after the corresponding
command, function call, or IPP operation is completed.

> Is there a way to force cupsd to update its config files
> (e.g. send a SIGHUP or whatever other signal)?

The only files that cupsd does not write immediately are the
job and remote printer cache files.  Those are updated when
cupsd receives SIGHUP or SIGTERM and when a new configuration
file is uploaded via HTTP.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com




More information about the cups mailing list