github.com/rohankumardubey/proxyfs@v0.0.0-20210108201508-653efa9ab00e/sait/bin/start_swift_only (about)

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