#!/usr/bin/env bash set -euo pipefail if [ "$(id -u)" -ne 0 ]; then exec sudo "$0" "$@" fi echo "== LisgloSIPS A startup ==" hostname systemctl start lisglosips-redis-hotpath-load.service systemctl start \ opensips \ rtpengine-daemon \ rtpengine-recording-daemon \ lisglosips-redis-auth-proxy \ lisglosips-node-exporter \ lisglosips-recording-finalize.timer opensips -C -f /etc/opensips/opensips.cfg >/tmp/lisglosips-opensips-check.log echo "== services ==" systemctl is-active \ opensips \ rtpengine-daemon \ rtpengine-recording-daemon \ lisglosips-redis-auth-proxy \ lisglosips-node-exporter \ lisglosips-recording-finalize.timer echo "== hotpath ==" systemctl show -p Result lisglosips-redis-hotpath-load.service echo "== failed units ==" systemctl --failed --no-pager