Skip to content

Commit

Permalink
Create test.osxs
Browse files Browse the repository at this point in the history
  • Loading branch information
Okerew authored Jul 29, 2024
1 parent 31b1dc0 commit 6ee73e2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions example/test/test.osxs
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

0 comments on commit 6ee73e2

Please sign in to comment.