/usr/share/doc/cloop-utils/examples/cloop-node-control.sh is in cloop-utils 2.6.39.2-1ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/bin/sh
# sample script to start and stop create_compressed_fs daemons on a set of
# compressing nodes
echo "Testing hosts..."
case "$1" in
start)
cmd="create_compressed_fs -l </dev/null >/dev/null 2>/dev/null &"
;;
stop)
cmd="killall create_compressed_fs"
;;
*)
echo "Syntax: $0 start|stop host host host ..."
exit 1;
;;
esac
shift
for node in "$@"; do
echo Running: ssh -x -q -t $node "$cmd"
ssh -x -q -t $node "$cmd"
done
|