#!/bin/sh if [[ "$*" != "show --property=MainPID storagenode" ]]; then echo "invalid command" >&2 exit 1 fi printf "MainPID=$(supervisorctl pid storagenode)"