Permalink
Browse files

add command to start rcouch in front without an interactive console

This command launch rcouch and don't release the console. This is useful
when you want to launch it via a supervisor.
  • Loading branch information...
1 parent 93f6cc7 commit 0e844f16492031abdaeecea37e8aa09d45a145f7 @benoitc benoitc committed Feb 16, 2014
Showing with 23 additions and 0 deletions.
  1. +23 −0 rel/files/runner
View
@@ -112,7 +112,30 @@ case "$1" in
# Attempt to create .pid file
create_pid_file
;;
+ start_front)
+ # Bootstrap daemon command (check perms & drop to $RUNNER_USER)
+ bootstrapd $@
+
+ # Make sure there is not already a node running
+ node_down_check
+ # Sanity check the app.config file
+ check_config > /dev/null
+ ES=$?
+ if [ "$ES" -ne 0 ]; then
+ exit $ES
+ fi
+
+ # Warn the user if ulimit is too low
+ check_ulimit
+
+ # Make sure log directory exists
+ mkdir -p $RUNNER_LOG_DIR
+
+ mkdir -p $PIPE_DIR
+ $ERTS_PATH/run_erl $PIPE_DIR/ $RUNNER_LOG_DIR \
+ "exec $RUNNER_SCRIPT_DIR/$RUNNER_SCRIPT console" 2>&1
+ ;;
stop)
# Bootstrap daemon command (check perms & drop to $RUNNER_USER)
bootstrapd $@

0 comments on commit 0e844f1

Please sign in to comment.