Add script shortcuts
authorChristos KK Loverdos <loverdos@gmail.com>
Mon, 2 Apr 2012 13:48:14 +0000 (16:48 +0300)
committerChristos KK Loverdos <loverdos@gmail.com>
Mon, 2 Apr 2012 13:49:12 +0000 (16:49 +0300)
make-dist.sh
scripts/start.sh [new file with mode: 0755]
scripts/stop.sh [new file with mode: 0755]

index dde86aa..139dff8 100755 (executable)
@@ -142,6 +142,8 @@ collectscripts() {
   echo Copying scripts from $SERVER_SCRIPTS_SRC
   echo
   cp $SERVER_SCRIPTS_SRC/aquarium.sh $DIST/bin || fail "copying aquarium.sh"
+  cp $SERVER_SCRIPTS_SRC/start.sh $DIST/bin || fail "copying start.sh"
+  cp $SERVER_SCRIPTS_SRC/stop.sh $DIST/bin || fail "copying stop.sh"
   cp $SERVER_SCRIPTS_SRC/test.sh $DIST/bin || fail "copying test.sh"
 }
 
diff --git a/scripts/start.sh b/scripts/start.sh
new file mode 100755 (executable)
index 0000000..0e52d5c
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+`dirname $0`/aquarium.sh start
+
diff --git a/scripts/stop.sh b/scripts/stop.sh
new file mode 100755 (executable)
index 0000000..1e76e66
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+`dirname $0`/aquarium.sh stop
+