Support XenServer in the gate

This change is required to support XenServer. Adds localrc generation.

Change-Id: I66b192b277cce6f8319dccd9e1009bef234ce7ee
Fix kill parameter

Kill was passed the pid as an option.

Change-Id: I9b65b58b72e7325e287f38fca2dddc8d3d14dbb9