From bc72cee160f4b501619d9911319171aca8a69bab Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 5 Oct 2019 11:09:12 -0600 Subject: [PATCH] Create monit.sh --- debian/resources/monit.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 debian/resources/monit.sh diff --git a/debian/resources/monit.sh b/debian/resources/monit.sh new file mode 100644 index 0000000..1dbac06 --- /dev/null +++ b/debian/resources/monit.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +#move to script directory so all relative paths work +cd "$(dirname "$0")" + +#includes +. ./config.sh +. ./environment.sh + +#make the monit shell script executable +chmod 755 monit/shell.sh + +#copy the freeswitch monit config +cp monit/freeswitch /etc/monit/conf.d + +#restart monit +service monit restart