-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update SystemGuard app setup script and dependencies in crontab
- Loading branch information
1 parent
7ec81f8
commit daadb3f
Showing
8 changed files
with
92 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# Script to start Locust server | ||
|
||
# Define the path to your Locust file | ||
LOCUST_FILE="src/scripts/locustfile.py" | ||
# Define the host URL for Locust | ||
HOST_URL="http://localhost:5050" | ||
|
||
# Check if Locust is installed | ||
if ! command -v locust &> /dev/null | ||
then | ||
echo "Locust is not installed. Please install it first." | ||
exit 1 | ||
fi | ||
|
||
# Start Locust server | ||
echo "Starting Locust server..." | ||
locust -f "$LOCUST_FILE" --host="$HOST_URL" | ||
|
||
# Optionally, you can pass additional Locust flags here if needed | ||
# For example, to run Locust in headless mode: | ||
# locust -f "$LOCUST_FILE" --host="$HOST_URL" --headless -u 10 -r 1 --run-time 1m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.