github.com/swiftstack/ProxyFS@v0.0.0-20210203235616-4017c267d62f/cookbooks/proxyfs/files/default/usr/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 # A simple script to start the swift services only 7 # The PATH, etc should already be setup by systemctl environment 8 9 sudo mount -a 10 11 echo "Shutting down services and mount points..." 12 /usr/bin/unmount_and_stop_pfs 13 echo 14 echo "Bringing up services..." 15 if [ -f /usr/bin/systemctl ]; then 16 # Centos 17 sudo /usr/bin/systemctl start memcached 18 sudo /usr/bin/swift-init main start 19 else 20 # Ubuntu (not tested!) 21 sudo /usr/sbin/service memcached start 22 sudo /usr/bin/swift-init main start 23 fi