#!/bin/bash # Restart Daemon Script # This script restarts the daemon to pick up the updated shell integration set -e echo "=== Restarting apt-ostree Daemon ===" echo # Stop the daemon echo "1. Stopping daemon..." sudo systemctl stop apt-ostree.service # Start the daemon echo "2. Starting daemon..." sudo systemctl start apt-ostree.service # Check status echo "3. Checking daemon status..." sleep 2 sudo systemctl status apt-ostree.service --no-pager -l echo echo "=== Daemon Restart Complete ===" echo "The daemon has been restarted with updated shell integration." echo "You can now run the integration tests to verify it's working." echo echo "To run integration tests:" echo " ./run_integration_tests.sh"