diff options
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json index e777a4f..5b48abb 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,8 @@ "socket.io": "^4.2.0" }, "scripts": { - "start": "node app.js thepixelworld & echo $! > .pid", - "stop": "pkill -F .pid && rm .pid", + "start": "node app.js thepixelworld &", + "stop": "ps x | grep \"node app.js thepixelworld\" | grep -v 'grep' | awk '{ print $1; }' | xargs kill -9", "restart": "npm stop && npm start", "test": "echo \"not configured yet!\" && exit 1" }, |