particle-os-tools/restart_daemon.sh
Joe Particle 4f00e140a3
Some checks failed
Compile apt-layer (v2) / compile (push) Failing after 3h13m50s
feat: add changelog, docs, and update various scripts for modular CLI milestone
2025-07-17 09:22:29 +00:00

30 lines
No EOL
718 B
Bash

#!/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"