Files
lisglosips/infra/ops/startup/lisglosips-start-t.sh
T

34 lines
601 B
Bash

#!/usr/bin/env bash
set -euo pipefail
if [ "$(id -u)" -ne 0 ]; then
exec sudo "$0" "$@"
fi
echo "== LisgloSIPS T startup =="
hostname
systemctl reset-failed opensips || true
systemctl start \
mariadb \
apache2 \
rtpengine-daemon \
rtpengine-recording-daemon \
opensips \
lisglosips-s28-uas
opensips -C -f /etc/opensips/opensips.cfg >/tmp/lisglosips-t-opensips-check.log
echo "== services =="
systemctl is-active \
opensips \
rtpengine-daemon \
rtpengine-recording-daemon \
lisglosips-s28-uas \
apache2 \
mariadb
echo "== failed units =="
systemctl --failed --no-pager