Create monit.sh

This commit is contained in:
FusionPBX 2019-10-05 11:09:12 -06:00 committed by GitHub
parent cf38d8e87c
commit bc72cee160
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

17
debian/resources/monit.sh vendored Normal file
View File

@ -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