Re: [Hampshire] Running a script that needs to do a rooty th…

Top Page
Author: Andy Smith
Date:  
To: hampshire
Subject: Re: [Hampshire] Running a script that needs to do a rooty thing

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x57f38100.hantslug.org.uk.11276': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Sat Nov 27 02:32:01 2010 GMT
gpg: using DSA key 2099B64CBF15490B
gpg: Can't check signature: No public key
Hi Victor,

On Fri, Nov 26, 2010 at 06:15:22PM +0000, Victor Churchill wrote:
> I have been asked to make a Perl script that does some stuff with Apache's
> config (adds a virtual host) and then does an apache2ctl graceful to tell
> Apache to re-read its config files.


I concur with Dominic's response.

Just as an aside, and I realise you may have thought of this
already.. I would recommend doing "apache2ctl configtest" after
you've done your script has done its editing so you can tell that
the config you've written does parse. If it doesn't then you could
have your script back out its changes.

Also what you're doing is configuration management so it might be
worth looking at bcfg2, cfengine, puppet or similar to check you're
not reinventing any wheels.

Cheers,
Andy

--
>> I have just recently purchased a Feathercraft Big Kahuna kayak
> does it have a heater?

Of course not. Everyone knows you can't have your kayak and heat it.
-- James Fidell