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 |
Stanislav Riazanov | f4ebd6c | 2019-01-24 15:56:40 +0400 | [diff] [blame] | 5 | stop_services="postgresql.service salt-api salt-master salt-minion jenkins maas-rackd.service maas-regiond.service maas-dhcpd.service maas-dhcpd6.service bind9" |
azvyagintsev | 29410ee | 2018-07-12 20:02:30 +0300 | [diff] [blame] | 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 |