mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
27 lines
418 B
Bash
27 lines
418 B
Bash
#!/usr/bin/env bash
|
|
|
|
SRC=$(cd $(dirname "$0"); pwd)
|
|
source "${SRC}/../include.sh"
|
|
|
|
cd $file_path
|
|
|
|
$pm2 kill
|
|
|
|
$pm2 restart BULLSHIT
|
|
ispec "Unknown process = error exit"
|
|
|
|
$pm2 restart 666
|
|
ispec "Unknown process = error exit"
|
|
|
|
$pm2 restart all
|
|
ispec "No process = error exit"
|
|
|
|
$pm2 stop all
|
|
ispec "No process = error exit"
|
|
|
|
$pm2 delete 10
|
|
ispec "No process = error exit"
|
|
|
|
$pm2 delete toto
|
|
ispec "No process = error exit"
|