restart.mqtt.sh 131 B

123456789
  1. #!/bin/bash
  2. echo "restarting MQTT"
  3. systemctl stop mqtt
  4. sleep 2
  5. systemctl start mqtt
  6. sleep 5
  7. journalctl -u mqtt -n 100 --no-pager