-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·28 lines (27 loc) · 1.11 KB
/
start.sh
File metadata and controls
executable file
·28 lines (27 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
set -e
echo "Starting RemoteLab services..."
if [[ "$(uname)" == "Darwin" ]]; then
if [ -f ~/Library/LaunchAgents/com.chatserver.claude.plist ]; then
launchctl load ~/Library/LaunchAgents/com.chatserver.claude.plist 2>/dev/null || echo "chat-server already loaded"
fi
if [ -f ~/Library/LaunchAgents/com.cloudflared.tunnel.plist ]; then
launchctl load ~/Library/LaunchAgents/com.cloudflared.tunnel.plist 2>/dev/null || echo "cloudflared already loaded"
fi
if [ -f ~/Library/LaunchAgents/com.remotelab.natapp.dual-proxy.plist ]; then
launchctl load ~/Library/LaunchAgents/com.remotelab.natapp.dual-proxy.plist 2>/dev/null || echo "natapp prefix bridge already loaded"
fi
echo "Services started!"
echo ""
echo "Check status with:"
echo " launchctl list | grep -E 'chatserver|cloudflared|natapp'"
else
sudo systemctl start remotelab.service
if systemctl --user list-unit-files remotelab-tunnel.service &>/dev/null 2>&1; then
systemctl --user start remotelab-tunnel.service
fi
echo "Services started!"
echo ""
echo "Check status with:"
echo " systemctl status remotelab.service"
fi