summaryrefslogtreecommitdiff
path: root/packaging/docker/catlfish-dev/start.sh
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2015-05-22 16:24:51 +0200
committerLinus Nordberg <linus@nordberg.se>2015-05-22 16:24:51 +0200
commitd9df4af0fcc91e1988a411892bba0b792ce62427 (patch)
treec0ce6c0fac4f932ca4a6e005da339d080432084a /packaging/docker/catlfish-dev/start.sh
parent0fe29c04e47b6660cf816f615537a61028c4deb9 (diff)
Moving docker stuff to its own repo (catlfish-dockerfiles).
Diffstat (limited to 'packaging/docker/catlfish-dev/start.sh')
-rwxr-xr-xpackaging/docker/catlfish-dev/start.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/packaging/docker/catlfish-dev/start.sh b/packaging/docker/catlfish-dev/start.sh
deleted file mode 100755
index c232f47..0000000
--- a/packaging/docker/catlfish-dev/start.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#! /bin/sh
-
-role=$1; [ -n "$1" ] && shift
-database=$1; [ -n "$1" ] && shift
-erlbase=$1; [ -n "$1" ] && shift
-
-# Set sane defaults.
-[ -z "$database" ] && database=/var/db/catlfish-merge
-[ -z "$erlbase" ] && erlbase=/usr/local/catlfish
-
-case $role in
- frontend|storage|signing)
- $erlbase/bin/run_erl \
- /var/run/catlfish/ \
- /var/run/catlfish/erlang_log/ \
- "exec $erlbase/bin/erl -config catlfish"
- ;;
- merge)
- # Catlfish version is included in filename of archive and
- # filename in that archive. Example: lib/catlfish-0.6.0.ez
- # contains catlfish-0.6.0.
- ver=$(ls $erlbase/lib/catlfish-*.ez | sed 's/.*catlfish-\(.*\)\.ez/\1/1')
- ERL_LIBS=$erlbase/lib/catlfish-${ver}.ez/catlfish-${ver}
- ERL_LIBS=$ERL_LIBS:$erlbase/lib/lager-2.1.1.ez/lager-2.1.1
- export ERL_LIBS
-
- $erlbase/merge.sh 60 3600 $database > merge_log/stdout 2> merge_log/stderr
- ;;
- *)
- echo "catlfish: unknown role: $role"
- ;;
-esac