#!/bin/bash # Re-start zoneminder ((UID)) && { echo "Sorry, you must run this as root."; exit 1; } echo "Stopping ZoneMinder" systemctl stop zoneminder.service echo "Stopping Apache daemon" systemctl stop httpd.service echo "Stopping MySQL daemon" systemctl stop mysqld.service echo "Starting MySQL daemon" systemctl start mysqld.service || { echo "Starting MySQL failed"; exit 1; } echo "Starting Apache daemon" systemctl start httpd.service || { echo "Starting Apache failed"; exit 1; } echo "Starting ZoneMinder" systemctl start zoneminder.service || { echo "Starting Zoneminder failed"; exit 1; }