@@ -407,17 +407,13 @@ show-config display the client connection parameters
407
407
needReMain ( [ 'play' , 'install-cosmos' ] ) ,
408
408
) ;
409
409
410
- const bootAddress = await needBacktick (
411
- `${ shellEscape ( progname ) } show-bootstrap-address` ,
412
- ) ;
413
410
await guardFile ( `${ COSMOS_DIR } /service.stamp` , ( ) =>
414
411
needReMain ( [
415
412
'play' ,
416
413
'install' ,
417
414
`-eexecline=${ shellEscape (
418
415
'/usr/src/cosmic-swingset/bin/ag-chain-cosmos start --pruning=nothing' ,
419
416
) } `,
420
- `-eserviceLines="Environment=BOOT_ADDRESS=${ bootAddress } "` ,
421
417
] ) ,
422
418
) ;
423
419
await guardFile ( `${ COSMOS_DIR } /start.stamp` , ( ) =>
@@ -460,43 +456,6 @@ show-config display the client connection parameters
460
456
needReMain ( [ 'play' , 'install-controller' ] ) ,
461
457
) ;
462
458
463
- await guardFile ( `${ CONTROLLER_DIR } /solo-service.stamp` , ( ) =>
464
- needReMain ( [
465
- 'play' ,
466
- 'install' ,
467
- '-eservice=ag-controller' ,
468
- '-euser=ag-pserver' ,
469
- '-echdir=/home/ag-pserver/controller' ,
470
- `-eexecline="/usr/local/bin/ag-solo start --role=controller"` ,
471
- ] ) ,
472
- ) ;
473
- await guardFile ( `${ CONTROLLER_DIR } /solo-start.stamp` , async ( ) => {
474
- await needReMain ( [
475
- 'play' ,
476
- 'start' ,
477
- '-eservice=ag-controller' ,
478
- '-euser=ag-pserver' ,
479
- ] ) ;
480
-
481
- const svc = 'ag-controller' ;
482
- await waitForStatus (
483
- 'ag-pserver' , // user
484
- PROVISIONER_NODE , // host
485
- svc , // service
486
- _retries =>
487
- sleep (
488
- SECONDS_BETWEEN_BLOCKS + 1 ,
489
- `to check if ${ chalk . underline ( svc ) } has found a block` ,
490
- ) ,
491
- ( buf , code ) => {
492
- if ( code ) {
493
- return undefined ;
494
- }
495
- return buf . match ( / : n e w b l o c k o n / ) ? true : undefined ;
496
- } ,
497
- ) ;
498
- } ) ;
499
-
500
459
// Install any pubkeys from a former instantiation.
501
460
await guardFile ( `${ CONTROLLER_DIR } /pubkeys.stamp` , ( ) =>
502
461
needReMain ( [
@@ -578,15 +537,6 @@ ${chalk.yellow.bold(`curl ${pserverUrl}/request-code?nickname=MY-NICK`)}
578
537
break ;
579
538
}
580
539
581
- case 'show-bootstrap-address' : {
582
- await inited ( ) ;
583
- const bootAddress = await trimReadFile (
584
- `${ CONTROLLER_DIR } /data/${ PROVISIONER_NODE } /boot-address.txt` ,
585
- ) ;
586
- process . stdout . write ( bootAddress ) ;
587
- break ;
588
- }
589
-
590
540
case 'ssh' : {
591
541
const [ host , ...sshArgs ] = args . slice ( 1 ) ;
592
542
if ( ! host ) {
@@ -618,19 +568,12 @@ ${chalk.yellow.bold(`curl ${pserverUrl}/request-code?nickname=MY-NICK`)}
618
568
setSilent ( true ) ;
619
569
await chdir ( SETUP_HOME ) ;
620
570
await inited ( ) ;
621
- const [
622
- chainName ,
623
- gci ,
624
- peers ,
625
- rpcAddrs ,
626
- bootstrapAddress ,
627
- ] = await Promise . all (
571
+ const [ chainName , gci , peers , rpcAddrs ] = await Promise . all (
628
572
[
629
573
'show-chain-name' ,
630
574
'show-gci' ,
631
575
'show-peers' ,
632
576
'show-rpcaddrs' ,
633
- 'show-bootstrap-address' ,
634
577
] . map ( subcmd =>
635
578
needBacktick ( [ progname , subcmd ] . map ( shellEscape ) . join ( ' ' ) ) ,
636
579
) ,
@@ -640,7 +583,6 @@ ${chalk.yellow.bold(`curl ${pserverUrl}/request-code?nickname=MY-NICK`)}
640
583
gci,
641
584
peers : peers . split ( ',' ) ,
642
585
rpcAddrs : rpcAddrs . split ( ',' ) ,
643
- bootstrapAddress,
644
586
} ;
645
587
process . stdout . write ( `${ JSON . stringify ( obj , undefined , 2 ) } \n` ) ;
646
588
break ;
@@ -959,7 +901,6 @@ ${name}:
959
901
? `\
960
902
units:
961
903
- ag-pserver.service
962
- - ag-controller.service
963
904
- ag-chain-cosmos.service
964
905
`
965
906
: '' ;
0 commit comments