Elliot Glaysher
aa8634ecdd
Revert "king: fix zig-zag in stderr logging"
...
This reverts commit e9ed97f8a8
.
2020-10-15 13:58:41 -04:00
pilfer-pandex
e9ed97f8a8
king: fix zig-zag in stderr logging
2020-10-13 12:01:04 -07:00
Elliot Glaysher
5eeb86a935
king: actually try shutting down the piers
2020-10-07 13:00:05 -04:00
Elliot Glaysher
ce92c405fe
king: --serf="" is a host option, not a per ship option.
...
This means you don't need to specify this per ship in a multitenant
environment when you are alwyas going to set it to the same binary
if you're overriding it in the first place.
2020-10-07 13:00:00 -04:00
Elliot Glaysher
4698659bb2
Merge pull request #3575 from urbit/kh-printing-is-a-slog
...
King Haskell terminal fixes
2020-10-01 12:14:30 -04:00
Elliot Glaysher
20a6c0331c
king: set initial terminal size and react to resizes
...
This changes startup so we get the size of the current terminal
to send to Urbit on startup. We then subscribe to terminal size
change notifications and send those to your Urbit via the terminal
muxing system.
In the case where there are multiple terminal connections to your
Urbit, set the terminal size to the minimum of the widths.
2020-09-25 12:40:24 -04:00
Elliot Glaysher
e9f09e32c1
king: put slogs in the muxed scrollback
...
If you connect to an urbit using the remote terminal code,
slogs would not be printed to them since they were hard
coded to be printed to stderr. This threads slog printing
to the terminal driver, and puts them in scrollback.
(It does not actually fix slogs being printed on one line.)
2020-09-25 12:40:23 -04:00
Fang
6659c859f1
kh: abolish unicode syntax in favor of ascii
2020-09-25 01:43:03 +02:00
pilfer-pandex
ba79aa713a
king: move most things from debug log level to info
2020-09-09 18:20:21 -07:00
Elliot Glaysher
88428961dd
natpmp: also detect 172.16.0/0/12 ips as private.
2020-08-19 14:02:03 -04:00
Elliot Glaysher
60e2ae02a2
natpmp: cleanup by using a tristate
2020-08-18 15:43:31 -04:00
Elliot Glaysher
dca4344a45
natpmp: By default, only try to talk to the router on private ips.
...
Since startup hangs for seconds when you are not behind a router,
but still attempt to ask one to open ports for you, by default,
only try to contact the router if the local ip is 192.168.*.* or
10.*.*.*.
Also make port forwarding force on/off.
2020-08-18 12:22:45 -04:00
pilfer-pandex
750b986370
Merge branch 'release/next-vere' into pp/log-cli
...
Rename `koUseNatPmp` to `hUseNatPmp`; cleanup
2020-08-17 11:43:30 -07:00
pilfer-pandex
6a236a2749
king: use XDG cache directory for default log location
2020-08-17 11:27:30 -07:00
pilfer-pandex
2d1f3cdfa0
king: thread LogLevel through, make output better
2020-08-16 10:33:52 -07:00
pilfer-pandex
8ab60b9133
king: configure logging via cli flags
2020-08-14 19:40:48 -07:00
Elliot Glaysher
1b3a69e24d
Merge branch 'release/next-vere' into king-natpmp
2020-08-14 16:17:47 -04:00
Elliot Glaysher
14d1b59117
natpmp: even more cleanup
2020-08-14 10:23:39 -04:00
Elliot Glaysher
1183ac0b22
natpmp: checkpoint while addressing comments
2020-08-13 11:12:26 -04:00
Elliot Glaysher
ac4b5a99e5
natpmp: Rename RunningEnv to HostEnv.
2020-08-13 10:19:35 -04:00
Elliot Glaysher
3e6fd0f8e8
natpmp: ~pilfer style nits
2020-08-13 10:08:02 -04:00
Elliot Glaysher
4d8c6ad09a
nat-pmp: improve error and diagnostic messages
2020-08-10 13:02:13 -04:00
Elliot Glaysher
149565cd97
king: get tests passing after nat-pmp changes
2020-08-07 13:04:57 -04:00
Elliot Glaysher
6368aa2b02
king: Turn NAT-PMP on by default, with a flag to disable.
...
Also: error checking.
2020-08-07 12:42:00 -04:00
Elliot Glaysher
86b445b7cb
king: First attempt at integration with NATPMP.
...
This sets up a separate thread to handle scheduling of lease
renewals.
2020-08-05 15:33:37 -04:00
Elliot Glaysher
d39d7246d1
king: move MultiEyreApi to a new RunningEnv.
...
There was a TODO in runShips about how the different layers of the
RIO environment had to be changed, so that there was a layer between
KingEnv and PierEnv for things shared between individual Piers, but
which weren't used outside of any PierEnv. This addresses those
TODOs by creating RunningEnv, which for now just owns MultiEyreApi
and makes it so we don't have to pass the entire thing around
explicitly.
The IP handling stuff will go in RunningEnv in a following patch.
2020-08-04 16:56:32 -04:00
Elliot Glaysher
225d2a288b
king: Add CLI options for NAT traversal.
...
(Not yet hooked up to anything.)
2020-08-04 16:08:35 -04:00
pilfer-pandex
fc92fd3611
king: use c vere's heuristics for finding the serf binary
2020-07-24 16:31:43 -07:00
Joe Bryan
6e9f8ec34b
king: fixes --serf worker-path cli parser
2020-06-26 00:54:29 -07:00
~siprel
2f02a6d0e6
king: Command line flag to enable verbose logging.
2020-06-11 02:07:10 +00:00
~siprel
eb81f5ca14
Less verbose log output.
2020-06-11 02:02:53 +00:00
~siprel
ba5bd09724
CLI option for serf exe + serf exe/flags live in PierConfig.
2020-06-10 23:56:48 +00:00
~siprel
dabe38be0d
In non-daemon mode, initial serf slogs are user-visiable.
2020-06-10 21:17:55 +00:00
~siprel
cc772da03c
king: Urbit.Vere.Pier cleanup.
2020-06-08 23:07:42 +00:00
~siprel
528e1d29ff
king: Separate out urbit-eventlog-lmdb package.
2020-06-08 22:01:28 +00:00
~siprel
ff646f4830
king: Snapshot on shutdown; no snapshot on start if no events to replay.
2020-06-08 17:45:41 +00:00
~siprel
ba50eb94cd
king: Spin off urbit-noun-core
and urbit-noun
packages.
2020-06-08 17:24:05 +00:00
~siprel
95df4b0764
king: Pier cleanup pass.
2020-06-06 23:34:27 +00:00
~siprel
648b0743c8
king: Shutdown TMVars now live in KingEnv/PierEnv.
2020-06-06 23:16:34 +00:00
~siprel
bd51337156
king: In non-daemon-mode, ^D now actually brings down the executable.
2020-06-06 21:33:15 +00:00
~siprel
3838cf8abb
^C brings king/serf down cleanly and promptly.
2020-06-04 21:10:33 +00:00
~siprel
45f475a178
king: snapshot requests block until event log catches up to serf.
2020-06-02 23:03:04 +00:00
~siprel
75b97d9e60
Docs and cleanup for Urbit.Vere.Serf.IPC
.
2020-06-01 17:51:37 +00:00
Benjamin Summers
47247d86d2
Merge branch 'khrc' of github.com:urbit/urbit into ipc-redux-kh
2020-05-29 17:15:16 -07:00
~siprel
bc35ec0406
king: IPC Batching during replay and normal operation.
2020-05-29 02:14:25 +00:00
~siprel
80b905c239
king: Slogs routed to both terminal and log output.
2020-05-28 18:56:51 +00:00
~siprel
8e78266d74
king: Review and Cleanup w/ Harrison
2020-05-27 22:57:34 +00:00
~siprel
26bd5a9e4b
king: Got new IPC working, still needs lots of polish.
2020-05-26 23:01:03 +00:00
Benjamin Summers
c5896f5ea0
HasKingEnv + HasPierEnv + misc cleanup
2020-05-22 11:37:58 -07:00
Benjamin Summers
419dc03727
RIO environment cleanup.
2020-05-13 12:55:16 -07:00