mirror of
https://github.com/saymrwulf/NTT-learning.git
synced 2026-05-18 21:20:12 +00:00
21 lines
377 B
Bash
Executable file
21 lines
377 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
source "$SCRIPT_DIR/common.sh"
|
|
|
|
if ! [[ -f "$PID_FILE" ]]; then
|
|
echo "No JupyterLab pid file found."
|
|
exit 0
|
|
fi
|
|
|
|
if is_running; then
|
|
kill -TERM "$(<"$PID_FILE")"
|
|
rm -f "$PID_FILE"
|
|
echo "JupyterLab stopped."
|
|
exit 0
|
|
fi
|
|
|
|
rm -f "$PID_FILE"
|
|
echo "Stale pid file removed."
|
|
|