azvyagintsev | 29410ee | 2018-07-12 20:02:30 +0300 | [diff] [blame] | 1 | #!/bin/bash -xe |
2 | |||||
3 | # stop and disable services, for healthy zerodisk | ||||
4 | # They should be enabled after cfg01 init | ||||
5 | stop_services="postgresql.service salt-api salt-master salt-minion jenkins maas-rackd.service maas-regiond.service bind9" | ||||
6 | for s in ${stop_services} ; do | ||||
7 | systemctl stop ${s} || true | ||||
8 | systemctl disable ${s} || true | ||||
9 | done | ||||
10 | |||||
11 | echo 3 > /proc/sys/vm/drop_caches | ||||
12 | sync |