diff options
Diffstat (limited to 'packaging/docker/catlfish-dev/start.sh')
-rwxr-xr-x | packaging/docker/catlfish-dev/start.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packaging/docker/catlfish-dev/start.sh b/packaging/docker/catlfish-dev/start.sh new file mode 100755 index 0000000..60ba44a --- /dev/null +++ b/packaging/docker/catlfish-dev/start.sh @@ -0,0 +1,21 @@ +#! /bin/sh + +role=$1; shift +erlbase=$1; shift +database=$1; shift + +case $role in + frontend|storage|sign) + $erlbase/bin/run_erl \ + /var/run/catlfish/ \ + /var/run/catlfish/erlang_log/ \ + "exec $erlbase/bin/erl -config catlfish" + ;; + merge) + ERL_LIBS=$erlbase/lib/catlfish-0.6.0-dev.ez/catlfish-0.6.0-dev + ERL_LIBS=$ERL_LIBS:$erlbase/lib/lager-2.1.1.ez/lager-2.1.1 + $erlbase/merge.sh 300 3600 $database + ;; + *) + echo "catlfish: unknown role: $role" +esac |