File size: 344 Bytes
f715547
 
e8d045e
f715547
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

cd /app
/lsproxy &
LSPROXY_PID=$!

marimo run tutorial.py --host 0.0.0.0 --port 7860 &
MARIMO_PID=$!

# Handle shutdown gracefully
cleanup() {
    echo "Shutting down processes..."
    kill $LSPROXY_PID
    kill $MARIMO_PID
    exit 0
}

trap cleanup SIGTERM SIGINT

# Wait for either process to exit
wait $LSPROXY_PID $MARIMO_PID