mosquitto-docker-letsencrypt/restart.sh

11 lines
264 B
Bash
Raw Permalink Normal View History

2018-10-24 19:18:46 +00:00
#!/bin/bash
ps cax | grep mosquitto > /dev/null
if [ $? -eq 0 ]; then
echo "Mosquitto is running."
pkill -f "mosquitto"
sleep 1
/usr/sbin/mosquitto -c /mosquitto/conf/mosquitto.conf&
else
echo "Mosquitto is not running."
fi