Bump API version to 2.4

Signed-off-by: John Else <john.else@citrix.com>
Bump API version number on API docs

Signed-off-by: John Else <john.else@citrix.com>
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
CP-9795: Use ip tool instead of ifconfig

The output of ifconfig varies by version so rather parse the output
of the ip tool.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
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
CA-153341: Use local force_state_reset after cross-pool SXM

This fixes cross-pool SXM from a slave. VM.power_state_reset gets
forwarded to the master, which then sees that the VM still appears to be
running on the alive slave, and raises HOST_IS_LIVE.

Calling force_state_reset directly bypasses this check.

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #2050 from johnelse/ca-153341

CA-153341: Use local force_state_reset after cross-pool SXM
Merge pull request #2044 from rosslagerwall/ifconfig-output

CP-9795: Use ip tool instead of ifconfig
Merge pull request #2036 from johnelse/api-version-bump

API version bump
CA-152343: Start SMAPIv1 proxies later in the startup sequence

On a slave this requires making a DB call to the master to find out
which SM objects exist, so this needs to be done after starting HA (if
applicable) and setting up the database connection to the master.

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #2056 from johnelse/ca-152343

CA-152343: Start SMAPIv1 proxies later in the startup sequence