CP-10236: Expose RDP status to VM guest metrics

Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
Merge pull request #2041 from cheng--zhang/CP-10236

CP-10236: Expose RDP status to VM guest metrics
Ensure all paths are read from the config file

Signed-off-by: Bob Ball <bob.ball@citrix.com>
Merge pull request #2045 from BobBall/sm-path-fix

Ensure all paths are read from the config file
CP-9795: Remove use of deprecated a4wide package

Replace use of the deprecated a4wide package with the geometry package
with equivalent settings.  The a4wide package is not available on some
systems.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
CP-9795: Improve comparison of hostname against localhost

On RHEL-based systems prior to 7, the output of hostname with no
hostname setup is "localhost.localdomain".  On RHEL 7-based systems and
Debian-based systems, the output of hostname is "localhost".  Compare
the name label against either of these values for resilience.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
CP-9795: Add required init scripts

Add some init scripts only required by XAPI.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
CP-9795: Use "service restart" rather than "service start"

The attach-static-vdis script runs on boot.  Some service managers
(like systemd), keep track of a service's state and so starting a
service which has already been started is a no-op.  Use the restart
verb instead start to prevent this and ensure that the script runs
as desired.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Merge pull request #2047 from rosslagerwall/hostname-localhost

CP-9795: Improve comparison of hostname against localhost
Merge pull request #2048 from rosslagerwall/remove-a4wide

CP-9795: Remove use of deprecated a4wide package
Merge pull request #2049 from rosslagerwall/restart-services

Add in some services used by XAPI