mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-01-23 02:35:34 +00:00
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.
```
This commit is contained in:
parent
0b521f6528
commit
843b05a6ec
1 changed files with 1 additions and 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 $*
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue