General
The controller is at the root of the hpa installation (identified as hpa_base_dir
)
Warning, HPA portal must ne be run as root. An error is thrown if root user is used.
Commands
- Status of the environment
cd {{hpa_base_dir}}/hpa ./hpa_controller.sh status
- Start the environment
cd {{hpa_base_dir}}/hpa ./hpa_controller.sh start
- Stop the environment
cd {{hpa_base_dir}}/hpa ./hpa_controller.sh stop
Commands per modules
- List the modules available for this version
cd {{hpa_base_dir}}/hpa ./hpa_controller.sh lm
- Start a module.
[module_name]
is one the module listed previouslycd {{hpa_base_dir}}/hpa ./hpa_controller.sh start [module_name]
- Stop the environment.
[module_name]
is one the module listed previouslycd {{hpa_base_dir}}/hpa ./hpa_controller.sh stop [module_name]
Start/Stop HPA with systemD
During the installation the following help message is displayed with the correct path.
To install HPA as systemd service :
- Ensure that HPA is stopped
- Execute the following commands :
sudo cp $BASEDIR_VERSION/hexagon-hpa.service /etc/systemd/system" sudo systemctl enable hexagon-hpa.service" sudo systemctl start hexagon-hpa.service
If SELinux is used, you can check the status with :
command -v getenforce > /dev/null && getenforce
if result is Enabled
then SELinux is activated, in this case, execute also :
semanage fcontext -a -t bin_t $BASEDIR_VERSION/controller.sh"
restorecon -v $BASEDIR_VERSION/controller.sh"