blob: 0790805cca490fb60700f2ba642168b1476f5f73 [file] [log] [blame]
azvyagintsev29410ee2018-07-12 20:02:30 +03001#!/bin/bash -xe
2
3# stop and disable services, for healthy zerodisk
4# They should be enabled after cfg01 init
Denis Egorenko8614d4d2019-03-04 14:10:28 +04005stop_services="salt-api salt-master salt-minion maas-rackd.service maas-regiond.service maas-dhcpd.service maas-dhcpd6.service bind9"
azvyagintsev29410ee2018-07-12 20:02:30 +03006for s in ${stop_services} ; do
7 systemctl stop ${s} || true
8 systemctl disable ${s} || true
9done
10
11echo 3 > /proc/sys/vm/drop_caches
12sync