blob: b12cbb6f6e9def8c2241619c514c4da6f205e145 [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
Stanislav Riazanovf4ebd6c2019-01-24 15:56:40 +04005stop_services="postgresql.service salt-api salt-master salt-minion jenkins 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