#!/usr/bin/env bash

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

list='api cacher jvb kamailio memcached memcached2 munin munin-node munin-cgi-graph mariadb nginx api-server-ng 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 

# restart docker - iptables may be damaged
/bin/systemctl restart docker 
/bin/systemctl restart api-server-ng

# 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

