#include <hallo.h>
* Giovanni Mascellani [Sun, Jan 20 2008, 11:16:08AM]:
> Package: apt-cacher-ng
> Version: 0.1.9-1
> Severity: wishlist
> 
> --- Please enter the report below this line. ---
> Just in case someone is interested into, I post this little Perl script
> I wrote to set on or off the offlinemode option and automatically
> restart the server. It could be distributed in the
> doc/apt-cacher-ng/examples/ dir, if you think it is useful.

I have not decided yet whether I like it. On the one hand it's a
trivial script which is a bit more efficient than a simple "perl -i -pe
... " oneliner (and also much more bloated!) but on the other hand I
fail to see the use case where it fits perfectly.

If you are going to change the state together with
interface/routing/dialup/... state changes than you could simply add
something to /etc/default/apt-cacher-ng to pass offlinemode:X parameter
and run the init script (and parametrize this $something) from some
/etc/network/*.d/ script.

Regards,
Eduard.

-- 
<meebey> lol, habe gerad eine spam mail bekommen mit: klicken sie hier
        um zu testen wie hoch ihr IQ ist...
<meebey> ich denke wenn ich raufklicke habe ich ihn nicht bestanden :)))


Reply via email to