File tree 4 files changed +57
-3
lines changed 4 files changed +57
-3
lines changed Original file line number Diff line number Diff line change @@ -579,13 +579,13 @@ commander.command('prettylist')
579
579
commander . command ( 'monit' )
580
580
. description ( 'launch termcaps monitoring' )
581
581
. action ( function ( ) {
582
- CLI . monit ( )
582
+ CLI . monit ( ) ;
583
583
} ) ;
584
584
585
585
commander . command ( 'm' )
586
586
. description ( '(alias) launch termcaps monitoring' )
587
587
. action ( function ( ) {
588
- CLI . monit ( )
588
+ CLI . monit ( ) ;
589
589
} ) ;
590
590
591
591
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ Monit.reset = function(msg) {
39
39
40
40
this . multi . charm . reset ( ) ;
41
41
42
- this . multi . write ( '\x1B[32m⌬ PM2 \x1B[39mmonitoring : \n\n' ) ;
42
+ this . multi . write ( '\x1B[32m⌬ PM2 \x1B[39mmonitoring\x1B[96m (To go further check out https://app.keymetrics.io) \x1B[39m \n\n' ) ;
43
43
44
44
if ( msg ) {
45
45
this . multi . write ( msg ) ;
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ SRC=$( cd $( dirname " $0 " ) ; pwd)
4
+ source " ${SRC} /include.sh"
5
+
6
+ cd $file_path
7
+
8
+ echo " ################## RELOAD ###################"
9
+
10
+ # ##############
11
+ $pm2 kill
12
+
13
+ lsof -c PM2 > /tmp/no_pm2_out.dat
14
+
15
+ $pm2 list
16
+
17
+ sleep 1
18
+ lsof -c PM2 > /tmp/empty_pm2_out.dat
19
+
20
+ $pm2 start echo.js -i 3
21
+ $pm2 start child.js -i 3
22
+ $pm2 delete all
23
+
24
+ sleep 1
25
+ lsof -c PM2 > /tmp/empty_pm2_out2.dat
26
+
27
+ OUT1=` cat /tmp/empty_pm2_out.dat | wc -l`
28
+ OUT2=` cat /tmp/empty_pm2_out2.dat | wc -l`
29
+
30
+ if [ $OUT1 -eq $OUT2 ]; then
31
+ success " All file descriptors have been closed"
32
+ else
33
+ fail " Some file descriptors are still open"
34
+ fi
35
+
36
+ $pm2 start killtoofast.js -i 6
37
+ $pm2 kill
38
+
39
+ sleep 1
40
+ lsof -c PM2 > /tmp/no_pm2_out2.dat
41
+ diff /tmp/no_pm2_out.dat /tmp/no_pm2_out2.dat
42
+
43
+ if [ $? == " 0" ]; then
44
+ success " All file descriptors have been closed"
45
+ else
46
+ fail " Some file descriptors are still open"
47
+ fi
48
+
49
+ rm /tmp/no_pm2_out.dat
50
+ rm /tmp/no_pm2_out2.dat
51
+ rm /tmp/empty_pm2_out.dat
52
+ rm /tmp/empty_pm2_out2.dat
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ echo "###################### !DEBUG! ###########################"
19
19
# export DEBUG="*"
20
20
# fi
21
21
22
+ bash ./test/bash/file-descriptor.sh
23
+ spec " testing file descriptors"
22
24
bash ./test/bash/pmx_injection.sh
23
25
spec " automatic pmx injection"
24
26
bash ./test/bash/log-timestamp.sh
You can’t perform that action at this time.
0 commit comments