AuthZ-Envoy-Sidecar Control Scripts
This document provides instructions on how to use the start.sh
and stop.sh
scripts to manage the AuthZ-Envoy-Sidecar process lifecycle in a Unix-like environment.
Overview
The start.sh
script is used to start the AuthZ-Envoy-Sidecar process. The process starts only if it is not already running and if the required configuration file is present. The stop.sh
script is used to stop the running AuthZ-Envoy-Sidecar process.
Configuration
Before running the scripts, ensure that you have a config.yaml
file in the same directory as the start.sh
and stop.sh
scripts. This file is required for the AuthZ-Envoy-Sidecar to start properly.
Starting the AuthZ-Envoy-Sidecar
To start the AuthZ-Envoy-Sidecar process, execute the following start.sh
script:
./start.sh
Upon execution, the script checks for the presence of the config.yaml
file. It then verifies if the AuthZ-Envoy-Sidecar process is already running. Only then does the script start the AuthZ-Envoy-Sidecar process in the background with specified flags and parameters
Stopping the AuthZ-Envoy-Sidecar
To stop the running AuthZ-Envoy-Sidecar process, execute the followingstop.sh
script:
./stop.sh
The script will send a signal to terminate the AuthZ-Envoy-Sidecar process. If the process is not running, the user is notified.
### Troubleshooting
If you encounter any issues while running the scripts, ensure that:
- You have executed permissions for both scripts. You can execute permissions using
chmod +x start.sh stop.sh
. - The
config.yaml
file is correctly configured and located in the expected directory. - The AuthZ-Envoy-Sidecar binary is compatible with your system's architecture and operating system version.