diff options
author | Reed A. Cartwright <cartwright@asu.edu> | 2016-01-19 16:17:16 -0700 |
---|---|---|
committer | Reed A. Cartwright <cartwright@asu.edu> | 2016-01-19 16:17:16 -0700 |
commit | 843b05a6ecc44367e5872d32406d1e6a0512bb72 (patch) | |
tree | eb2d4a1e55ca6e2eeaebb2d67423a657dacdef36 /bin | |
parent | 0b521f652846077096839d5b75d8bb1d0f70ce4f (diff) | |
download | etherpad-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')
-rwxr-xr-x | bin/run.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 $* |