You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
328 B
19 lines
328 B
#!/bin/sh
|
|
|
|
#move to script directory so all relative paths work
|
|
cd "$(dirname "$0")"
|
|
|
|
#includes
|
|
. ./config.sh
|
|
|
|
#install monit
|
|
apt-get install -y monit
|
|
|
|
#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
|