Fixing gentoo init script to use system python.

If this is custom compiled on Gentoo (like it should be), the built in
python can have problems being found (especially if security mechanisms
are put in place (i.e. pax)).  This change tells nova-agent to use the
system python and check the system python's path before looking for the
nova-agent specific modules in the nova "shared" directory.
Better handling of static routes in debian/ubuntu

* Indent the up and down lines for static routes in the interfaces files to match the indentation of the rest of the interface stanza, not required, but better for readability
* Switch to post-up and pre-down instead of up and down for adding and removing routes, to prevent a possible race condition of adding or removing a route on an interface, when the interface is not ready
* append "|| true" to the end of the up and down commands. If the command was to return a non-zero exit code, interfaces could be left in an inconsistent state, unable to be managed by ifup/ifdown. This can happen if the route is missing when the down command runs to delete the route, or if the route exists when the up command runs to add the route. Appending "|| true" forces a 0 exit code to be returned. Errors from the route command are still sent to stderr, but do not cause interface management operations to fail non-gracefully.
fix(configure.ac): you must check for lib64

this fixes the build for fedora 18
fix(configure.ac): support ubuntu multilib

you must check the gcc -print-multiarch path also.
Make the log file no longer world readable

I've renamed a variable to make the code easier to understand.

Also it'll force the file permissions of the log file to be only
read|write by the owner, not by the whole world.

Just after the logging.basicConfig is called (which creates the log file
if it's not there already), it runs a chmod on the file.

This will happen even if the log file was made a long time ago.

-----

The other way to make the file read/writable but only when it's created
is to override the RotatingFileHandler's rotate method as shown here: http://stackoverflow.com/questions/1407474/does-python-logging-handlers-rotatingfilehandler-allow-creation-of-a-group-writa

However that's hard to do in C.

-----
Another way would be to check if the log file was created in the last
second, however that's not possible in posix C.
Add systemd support and start updating archlinux stuff

Patch on top of pull request 15

Arch Linux switched to systemd some time ago, unfortunately rackspace
and open stack are behind. This patch provides a systemd.service unit to
be installed on Arch Linux images, it should also work for fedora and
anyone else that booted with systemd.

I just started working at rackspace last week, (A8 first shift) but I
would really like to know how I can get my hands on that Arch Linux
image that still defaults to initscripts so I can bring it up to date
and also learn more about openstack and nova-agent and the json rest
api.

I am also working on a small set of patches for the switch to netctl
since we also just dropped netcfg from the repositories to the aur
today.

https://www.archlinux.org/trustedusers/#dwallace
Merge pull request #22 from sridevikoushik31/arch_change

Add systemd support and start updating archlinux stuff
Merge pull request #13 from matiu2/master

make log file more secure 

Tested on all the distros, and good to merge
Merge pull request #1 from alunduil/gentoo-init-fixes

Fixing gentoo init script to use system python. Requires update for NOVA_PYTHON_PATH evaluation to depend on nova-agent's internal Python version and not on the system where it's being installed. Will push that soon.
updated gitignore for vim swap files
Adding Proper Depend() and Block so net and ssh Start.
Merge pull request #8 from sivel/debian-network-static-routes

Better handling of static routes in debian/ubuntu
Merge pull request #23 from rackerlabs/gentoo-init

Gentoo Init changes for depend() block
fixing existing test BSD:net for static routes commit#f7bc484
fixing existing test BSD:net for static routes commit#f7bc484
fixing confusing display ERROR log from json_parser tests
fixing confusing display ERROR log from json_parser tests
fixed Gentoo:Network feature from pull-request#4
commands/gnetoo/network fixing typo list.extend => list.append for _headers
commands/gnetoo/network fixing commenting for _header