-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/06/2011 05:27 PM, Joey Hess wrote:
> Daniel Hahler wrote:
>> Please ignore /etc/cups/subscriptions.conf and
>> /etc/cups/subscriptions.conf.O by default.
>> 
>> These are autogenererated files and they change frequently.
> 
> If it's an autogenerated file that cannot be used for
> configuration, it doesn't belong in /etc, and this would be a bug
> in cups.

- From subscriptions.conf(5):

The  subscriptions.conf  file  defines the local subscriptions that are
active. It is normally located in the /etc/cups directory and is gener‐
ated  automatically by the cupsd(8) program when subscriptions are cre‐
ated, renewed, or cancelled.

See also
http://www.cups.org/documentation.php/ref-subscriptions-conf.html .

It has been filed upstream at http://www.cups.org/str.php?L3018, but
got rejected:
"""Unfortunately, the FHS does not address persistent *configuration*
files that are generated by an application in response to user input.
/etc is the only directory that actually fits, even though those files
are typically written by a user."""

> If, OTOH, cups honors an admins's changes to the file, then it
> does belong in /etc and etckeeper should version it.
> 
> I don't have the file here, so cannot check.

You are probably right, that it should be versioned by default maybe.

The changes therein look like this:

                -ExpirationTime 1323164179
                +ExpirationTime 1323174692

                -NextSubscriptionId 179
                -<Subscription 178>
                +NextSubscriptionId 180
                +<Subscription 179>

                -ExpirationTime 1323117426
                +ExpirationTime 1323164179

                -ExpirationTime 1323113926
                +ExpirationTime 1323117426

                -NextSubscriptionId 178
                -<Subscription 177>
                +NextSubscriptionId 179
                +<Subscription 178>

The whole file looks as follows here:

                # Subscription configuration file for CUPS v1.5.0
                # Written by cupsd
                NextSubscriptionId 182
                <Subscription 181>
                Events printer-state-changed printer-restarted printer-shutdown
printer-stopped printer-added printer-deleted job-state-changed
job-created job-completed job-stopped
                Owner daniel
                Recipient dbus://
                LeaseDuration 3600
                Interval 0
                ExpirationTime 1323200151
                NextEventId 1
                </Subscription>

Thanks,
Daniel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFO3mRkfAK/hT/mPgARAv0mAJ9jz2iRP01fxIgJiOrMklWIGSL8fQCgwxrw
Hg/tjO+dvCQ9Zpv8/0rwluQ=
=kMed
-----END PGP SIGNATURE-----



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to