github.com/swiftstack/ProxyFS@v0.0.0-20210203235616-4017c267d62f/bin/cleanswift (about)

     1  #!/bin/bash
     2  #
     3  # Copyright (c) 2015-2021, NVIDIA CORPORATION.
     4  # SPDX-License-Identifier: Apache-2.0
     5  
     6  swift-init all stop
     7  find /var/log/swift -type f -delete
     8  find /var/cache/swift* -type f -name *.recon -delete
     9  sudo umount /mnt/swift-disk
    10  sudo rm -r /srv/node*
    11  sudo rm -f /var/lib/swift/disk
    12  sudo rm -f /var/log/debug /var/log/messages /var/log/rsyncd.log /var/log/syslog
    13  sudo service rsyslog restart