mirror of
https://github.com/Unitech/pm2.git
synced 2026-01-25 16:07:46 +00:00
15 lines
265 B
Bash
15 lines
265 B
Bash
#!/usr/bin/env bash
|
|
|
|
SRC=$(cd $(dirname "$0"); pwd)
|
|
source "${SRC}/include.sh"
|
|
|
|
pm2dev="`type -P node` `pwd`/bin/pm2-dev"
|
|
rundev="`type -P node` `pwd`/bin/rundev"
|
|
|
|
$rundev test/fixtures/child.js &
|
|
PM2_PID=$!
|
|
|
|
sleep 2
|
|
kill $PM2_PID
|
|
spec "should process been killed"
|