-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This is an example script for the OSXIEC scripting language | ||
|
||
# Log the start of the script | ||
LOG Starting script for $container_name | ||
|
||
# Set container memory limits | ||
SET_MEMORY $mem_soft $mem_hard | ||
|
||
# Set CPU priority | ||
SET_CPU $cpu_priority | ||
|
||
# Execute a command | ||
EXECUTE echo "Container $container_name initialized" | ||
|
||
# Conditional execution | ||
SET status running | ||
IF status==running EXECUTE echo "Container is operational" | ||
|
||
# Sleep for 2 seconds | ||
SLEEP 2 | ||
|
||
# Echo some information | ||
ECHO Container $container_name is configured with: | ||
ECHO - Memory limits: $mem_soft MB (soft) / $mem_hard MB (hard) | ||
ECHO - CPU priority: $cpu_priority | ||
|