Skip to content

Commit

Permalink
bin/psv.sh: up; #!/bin/bash
Browse files Browse the repository at this point in the history
  • Loading branch information
sam#gemmi-win10 committed Dec 6, 2023
1 parent 7f432e8 commit 7a6c936
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flux/src/bin/psv.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7a6c936

Please sign in to comment.