forked from norman/fusionpbx-install.sh-github-mirror
Create monit.sh
This commit is contained in:
17
debian/resources/monit.sh
vendored
Normal file
17
debian/resources/monit.sh
vendored
Normal 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
|
||||||
Reference in New Issue
Block a user