summaryrefslogtreecommitdiff
path: root/bin/run.sh
diff options
context:
space:
mode:
authorReed A. Cartwright <cartwright@asu.edu>2016-01-19 16:17:16 -0700
committerReed A. Cartwright <cartwright@asu.edu>2016-01-19 16:17:16 -0700
commit843b05a6ecc44367e5872d32406d1e6a0512bb72 (patch)
treeeb2d4a1e55ca6e2eeaebb2d67423a657dacdef36 /bin/run.sh
parent0b521f652846077096839d5b75d8bb1d0f70ce4f (diff)
downloadetherpad-lite-843b05a6ecc44367e5872d32406d1e6a0512bb72.zip
Use exec to switch to node process
At the end of run, `exec` should be used to switch to the node process. That way node will take over the pid of `sh run.sh`, making it easier to monitor and daemonize the server. ``` exec [command [arg ...]] Unless command is omitted, the shell process is replaced with the specified program (which must be a real program, not a shell built-in command or function). Any redirections on the exec com- mand are marked as permanent, so that they are not undone when the exec command finishes. ```
Diffstat (limited to 'bin/run.sh')
-rwxr-xr-xbin/run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/run.sh b/bin/run.sh
index 4d276632..08cd1da7 100755
--- a/bin/run.sh
+++ b/bin/run.sh
@@ -35,5 +35,5 @@ bin/installDeps.sh $* || exit 1
echo "Started Etherpad..."
SCRIPTPATH=`pwd -P`
-node $SCRIPTPATH/node_modules/ep_etherpad-lite/node/server.js $*
+exec node $SCRIPTPATH/node_modules/ep_etherpad-lite/node/server.js $*