ICESERVER

Launch an HTTP Service for an ICE Appliance.

ICESERVER - launch an HTTP Service for an ICE Appliance

<port>	Port for the HTTP Server [8080]
<cfg>	Snapapp config table name [ICEBOX]
<scene>	Scene in config table []
<mode>	Action to perform on startup [NONE]

This macro is used to control an ICE Appliance via an HTTP Service.
The <mode> can be used to automatically OPEN a snapapp instance.
Use the /ACTION= switch in the config table to initiate the desired SNAPAPP startup action.

The ICE AUTO function must be run on the appliance after installing ICE cards and/or reassigning 
network port addresses of any NIC ports.  This generates an iceauto.tbl file in the startup
directory that is used from then on by the system.

The supported APP actions are:
  OPEN  - start App instance and connect to it
  CLOSE - stop App instance
  LAUNCH - start App instance detached
  SCHEDULE - start and stop App based on CRON scheduler field

The supported SYSTEM actions are:
  NOPOLL   - temporarily stop system polling (to allow ipmice calls or card flashing)
  POLL	   - resume system polling
  SHOWLOG  - view the system logger file
  POWEROFF - power off the appliance
  POWERCYC - power off the appliance for 10 seconds (cold boot)
  REBOOT - reboot the appliance
  QUIT - stop the service

There are special fields in the SERVER_DEFAULTS table in icebox.tbl to control the system

  SERVER_DEFAULTS={
    SCENE=name			! startup scene name
    MODE=OPEN|CLOSE|SCHEDULE	! starts the App in this mode at powerup (default=CLOSE)
    GPS=IOMx			! location of a GPS module to configure
    GPSOPTS=(APWR)		! GPSOPTS flag for module initialization
    GPSMODE=TRACK		! Default GPS control mode 
    LOGINT=s			! seconds between system health log entries
    FAN=p			! fan setting in percent (0-100)
    CRON=A@B			! schedule scene to run for A seconds every B seconds.
    AUTOFLAGS=flags		! flags to add to the ICEAUTO output for each device (ex. NOPM|GREEN)
  }

The CRON scheduler field A @ B will run the currently configured scene for A seconds every B seconds.
IF A = -1, the scene will run until the next restart.  The CRON entry in the SERVER_DEFAULTS table
will set the Scheduler field to this value and start the scheduler mode.

Switches: 
  /NOINIT - Do not initialize and autoconfig hardware
  /NOEXIT - Remove EXIT from the mode menu
  /NOREBOOT - Remove REBOOT from the mode menu
  /NOPOWEROFF - Remove POWEROFF from the mode menu
  /ICEOS - Special placements for ICEOS applications