Files
JiboSDK/node_modules/jibo-tools/bin/setup.sh
2026-03-22 03:21:45 +02:00

27 lines
1017 B
Bash
Executable File

#!/bin/sh
# echo "Making sure Jibo's Audio, Body, and TTS service are running."
# Kill all of the services
# TODO: Make sure this isn't causing issues where services expect to shutdown nicely
killall jibo-audio-service >/dev/null 2>&1
killall jibo-body-service >/dev/null 2>&1
killall jibo-tts-service >/dev/null 2>&1
# Give some for the processes to be killed
#sleep 1
# Now startup the services again
jibo-audio-service -c /etc/jibo/jibo-audio-service.json >/tmp/jibo-audio-service.log 2>&1 &
jibo-body-service -c /etc/jibo/jibo-body-service.json >/tmp/jibo-body-service.log 2>&1 &
jibo-tts-service -c /etc/jibo/jibo-tts-service.json >/tmp/jibo-tts-service.log 2>&1 &
#echo "All services are a go."
# Enable the robot to network to more than local host
# (example use git, or npm, and just hit remote endpoints in general)
# route add default gw 192.168.1.1 wlp1s0 >/dev/null 2>&1
# echo "nameserver 192.168.1.1" > /tmp/resolv.conf 2>/dev/null
# Give the above command some time to take effect/finish
sleep 1