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

     1  #!/bin/bash
     2  
     3  # Copyright (c) 2015-2021, NVIDIA CORPORATION.
     4  # SPDX-License-Identifier: Apache-2.0
     5  
     6  sudo mount -a
     7  
     8  echo "Shutting down services and mount points..."
     9  /vagrant/src/github.com/swiftstack/ProxyFS/sait/bin/unmount_and_stop_pfs
    10  echo
    11  echo "Bringing up services..."
    12  if [ -f /usr/bin/systemctl ]; then
    13      # Centos
    14      sudo /usr/bin/systemctl start memcached
    15      sudo /usr/bin/swift-init main start
    16  else
    17      # Ubuntu (not tested!)
    18      sudo /usr/sbin/service memcached start
    19      sudo /usr/bin/swift-init main start
    20  fi