General Koha contribs; anybody with an SSH key registered can push here
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.

27 lines
638 B

apt-get install monit
cp ./koha-plack/plack.conf $monitpath/conf.d/plack.conf
cp ./koha-zebra/zebra.conf $monitpath/conf.d/zebra.conf
cp ./koha-coce/coce.conf $monitpath/conf.d/coce.conf
cp ./koha-zebra/*.sh $bashpath/
cp ./koha-plack/*.sh $bashpath/
cp ./koha-coce/*.sh $bashpath/
echo "What mailserver should we send through?"
read mailserver
echo "Where should we send the emails?"
read monitmail
echo "
set mailserver $mailserver,
set alert $monitmail not on { instance, action }
set httpd port 2812
" > $monitpath/conf.d/koha-common.conf
service monit start
monit start all