Closed despiegk closed 5 years ago
There was some small issue related to pid of process not being recognized and saved properly
tests ran smoothly after getting pid.
also fixed j.servers.corex.test()
Verified on branch development_jumpscale
j.servers.startupcmd.test()
Mon 22 12:49:58 JSConfig.py - 84 - startupcmd : trigger: tmuxserver:save_post
Mon 22 12:49:58 JSConfigs.py - 140 - startupcmdfactory : get child:'http'from 'startupcmdfactory'
Mon 22 12:49:58 JSConfigs.py - 106 - startupcmdfactory : NEW
Mon 22 12:49:58 JSConfig.py - 84 - startupcmd : trigger: http:new
Mon 22 12:49:58 JSConfig.py - 84 - startupcmd : trigger: http:get
Mon 22 12:49:58 JSConfig.py - 84 - startupcmd : trigger: http:delete
Mon 22 12:49:58 JSConfig.py - 84 - startupcmd : trigger: http:delete_post
Mon 22 12:49:58 JSConfig.py - 84 - startupcmd : trigger: tmuxserver:get
Mon 22 12:49:58 JSConfig.py - 84 - startupcmd : trigger: tmuxserver:delete
Mon 22 12:49:58 JSConfig.py - 84 - startupcmd : trigger: tmuxserver:delete_post
Mon 22 12:49:58 JSConfigs.py - 140 - startupcmdfactory : get child:'http_back'from
Mon 22 12:49:58 JSConfig.py - 84 - startupcmd : trigger: http_back:new
Mon 22 12:49:58 JSConfig.py - 84 - startupcmd : trigger: http_back:get
Mon 22 12:49:58 JSConfig.py - 84 - startupcmd : trigger: http_back:delete
Mon 22 12:49:58 JSConfig.py - 84 - startupcmd : trigger: http_back:delete_post
TEST STARTUPCMDS OK
JSX> j.servers.corex.test()
Mon 22 12:57:21 uilderBaseClass.py - 142 - buildercorex : no need to do: buildercorex:{}, was already done
Mon 22 12:57:21 CorexServer.py - 26 - corexserver : start corex server
Mon 22 12:57:21 StartupCMD.py - 434 - startupcmd : start:corex_default
Mon 22 12:57:21 StartupCMD.py - 442 - startupcmd : no need to start was already started:corex_default
Mon 22 12:57:21 JSConfig.py - 84 - startupcmd : trigger: corex_default:get
Mon 22 12:57:21 JSConfig.py - 84 - corexclient : trigger: test:get
Mon 22 12:57:21 CorexServer.py - 38 - corexserver : stop corex server
Mon 22 12:57:21 StartupCMD.py - 241 - startupcmd : stop: corex_default
Mon 22 12:57:21 Attr.py - 59 - startupcmd : SET:time_stop:1563800241
Mon 22 12:57:21 le_startupcmd_1.py - 976 - jumpscale.startupcmd.1:5 : change:time_stop1563800241
Mon 22 12:57:21 Attr.py - 59 - startupcmd : SET:state:stopping
Mon 22 12:57:21 le_startupcmd_1.py - 754 - jumpscale.startupcmd.1:5 : change:stateSTOPPING
Mon 22 12:57:21 JSConfig.py - 84 - startupcmd : trigger: corex_default:save
Mon 22 12:57:21 le_startupcmd_1.py -1352 - jumpscale.startupcmd.1:5 : DDICT
## {BLUE}.startupcmd
{RESET}{GRAY}id: 5
{RESET}{RED}name : corex_default
{RESET}cmd_start : corex -p 1491
interpreter : BASH
cmd_stop :
debug : False
path :
env : {}
ports :
- 1,491
ports_udp : []
timeout : 10
process_strings : []
process_strings_regex: []
pid : 3,536
executor : BACKGROUND
daemon : True
hardkill : False
state : RUNNING
corex_client_name : default
corex_id :
error :
time_start : 2019/07/22 12:49:58
time_refresh : 2019/07/22 12:49:02
time_stop : 2019/07/22 12:49:57
{RESET}
Mon 22 12:57:21 JSConfig.py - 84 - startupcmd : trigger: corex_default:save_post
Mon 22 12:57:21 StartupCMD.py - 182 - startupcmd : found process to stop:3536
Mon 22 12:57:21 Attr.py - 59 - startupcmd : SET:time_start:1563800241
Mon 22 12:57:21 le_startupcmd_1.py - 902 - jumpscale.startupcmd.1:5 : change:time_start1563800241
Mon 22 12:57:21 Attr.py - 59 - startupcmd : SET:state:running
Mon 22 12:57:21 le_startupcmd_1.py - 754 - jumpscale.startupcmd.1:5 : change:stateRUNNING
Mon 22 12:57:21 JSConfig.py - 84 - startupcmd : trigger: corex_default:save
Mon 22 12:57:21 le_startupcmd_1.py -1352 - jumpscale.startupcmd.1:5 : DDICT
## {BLUE}.startupcmd
{RESET}{GRAY}id: 5
{RESET}{RED}name : corex_default
{RESET}cmd_start : corex -p 1491
interpreter : BASH
cmd_stop :
debug : False
path :
env : {}
ports :
- 1,491
ports_udp : []
timeout : 10
process_strings : []
process_strings_regex: []
pid : 3,536
executor : BACKGROUND
daemon : True
hardkill : False
state : STOPPING
corex_client_name : default
corex_id :
error :
time_start : 2019/07/22 12:49:58
time_refresh : 2019/07/22 12:49:02
time_stop : 2019/07/22 12:57:21
{RESET}
Mon 22 12:57:22 JSConfig.py - 84 - startupcmd : trigger: corex_default:save_post
Mon 22 12:57:22 StartupCMD.py - 343 - startupcmd : wait_stopped:corex_default (now:1563800242)
Mon 22 12:57:22 StartupCMD.py - 360 - startupcmd : IS HALTED based on TCP/UDP corex_default
Mon 22 12:57:22 Attr.py - 59 - startupcmd : SET:pid:0
Mon 22 12:57:22 le_startupcmd_1.py - 606 - jumpscale.startupcmd.1:5 : change:pid0
also test corex backend properly