You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
action-manager/start.sh

29 lines
541 B

#!/bin/bash
ARGS="$@"
while [[ -n "$@" ]]; do
if [[ "${1:0:1}" != "-" ]]; then
if [[ -z "$volumepipe" ]]; then
volumepipe="$1"
elif [[ -z "$commandpipe" ]]; then
commandpipe="$1"
fi
fi
shift;
done
# volumepipe
if ! [[ -p "$volumepipe" ]]; then
rm -rf "$volumepipe"
mkfifo "$volumepipe"
fi
# volumecontrol
if ! [[ -p "$commandpipe" ]]; then
rm -rf "$commandpipe"
mkfifo "$commandpipe"
fi
eval set -- "$ARGS"
exec "$(dirname "${BASH_SOURCE[0]}")/daemon.py" "$@"