diff --git a/flux/src/bin/psv.sh b/flux/src/bin/psv.sh index bfad6bfa..9775d6dc 100644 --- a/flux/src/bin/psv.sh +++ b/flux/src/bin/psv.sh @@ -1,20 +1,20 @@ -#!/bin/sh +#!/bin/bash cmd=$1 -shit +shift args=$@ # http://b0llix.net/perp/site.cgi?page=perpctl.8 case "$cmd" in status) - if [ "" == "$args" ] + if [ "" == "$args" ]; then perpls else perpstat $args fi ;; start|stop) - if [ "start" == "$cmd" ] + if [ "start" == "$cmd" ]; then perpctl up $args else perpctl down $args @@ -24,7 +24,7 @@ start|stop) # described above are applied to both the main and log services. ;; enable|disable) - if [ "enable" == "$cmd" ] + if [ "enable" == "$cmd" ]; then perpctl A $args else perpctl X $args