#!/bin/bash # One unit runs the whole robot (face, camera, vision, audio) via the hermes_bringup launch file, so # the face is up whenever the robot is powered, and everything is ROS. Each node is its own process # and is respawned by the launch file, so one crash cannot take the others down. # Replaces the earlier standalone robot-face.service. Run as root from this directory. Re-runnable. set -euo pipefail cd "$(dirname "$0")" install -m 644 robot-cpu-performance.service robot.service /etc/systemd/system/ systemctl disable --now robot-face.service 2>/dev/null || true rm -f /etc/systemd/system/robot-face.service systemctl daemon-reload systemctl enable --now robot-cpu-performance.service systemctl enable robot.service systemctl restart robot.service echo "robot.service enabled and started"