Built the Sentinel Tab
This commit is contained in:
33
patch_nemoclaw_service_20260401.sh
Normal file
33
patch_nemoclaw_service_20260401.sh
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
sudo systemctl stop nemoclaw-velocity.service || true
|
||||
sudo pkill -f '/usr/bin/nemoclaw my-assistant connect --detach' || true
|
||||
cat > /tmp/nemoclaw-velocity.service <<'EOF'
|
||||
[Unit]
|
||||
Description=NemoClaw Velocity Sentinel Gateway Bootstrap
|
||||
After=network.target docker.service ollama.service
|
||||
Wants=docker.service ollama.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
User=ubuntu
|
||||
Group=ubuntu
|
||||
WorkingDirectory=/opt/dlami/nvme/nemoclaw
|
||||
Environment=HOME=/home/ubuntu
|
||||
Environment=NEMOCLAW_HOME=/opt/dlami/nvme/nemoclaw
|
||||
Environment=OPENSHELL_HOME=/opt/dlami/nvme/openshell
|
||||
ExecStart=/bin/bash -lc 'openshell gateway start --name nemoclaw --port 8080 --gpu >/dev/null && openshell gateway select nemoclaw >/dev/null && nemoclaw my-assistant status >/dev/null'
|
||||
ExecStop=/bin/bash -lc 'openshell gateway select nemoclaw >/dev/null && openshell gateway stop >/dev/null || true'
|
||||
StandardOutput=append:/opt/dlami/nvme/logs/nemoclaw.log
|
||||
StandardError=append:/opt/dlami/nvme/logs/nemoclaw.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
sudo mv /tmp/nemoclaw-velocity.service /etc/systemd/system/nemoclaw-velocity.service
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl restart nemoclaw-velocity.service
|
||||
sleep 5
|
||||
sudo systemctl is-active nemoclaw-velocity.service
|
||||
sudo systemctl status nemoclaw-velocity.service --no-pager -n 40
|
||||
Reference in New Issue
Block a user