#!/usr/bin/env bash

echo 
echo "*** Configuring services to autostart on boot ***"
echo 

systemctl daemon-reload

list='api cacher pusher jvb kamailio memcached memcached2 munin munin-node munin-cgi-graph mariadb nginx api-server-ng crm-connector prosody rtpengine syslog-ng turnserver vsftpd webmin uniserver tarantool@pbxm-watcher tarantool@crm-connector'
for s in $list; do echo enable [$s] service; systemctl enable $s; done 

# stop monit - it can create problems while install
/bin/systemctl stop monit

#list='drbd'
#for s in $list; do systemctl disable $s; systemctl stop $s; done

#if [ "${WBMTYPE}" = "st" ]; then
#list='avahi-daemon messagebus'
#for s in $list; do chkconfig --level 345 $s on; done 
#fi

