Commit Graph

63 Commits

Author SHA1 Message Date
Jason Volk 314dacdce0 modules/console: Improve bad command error format; improve subcommands display. 2023-02-22 16:04:12 -08:00
Jason Volk affd1f2913 cosntruct: Elide empty string append in console recording. 2023-02-15 16:44:23 -08:00
Jason Volk 14b9c51a06 construct: Add -silent option to also suppress console result output. 2023-02-02 18:51:03 -08:00
Jason Volk 5ed2e64b62 construct::console: Replace stringbuf w/ streambuf to reuse our buffer. 2023-02-02 18:51:03 -08:00
Jason Volk 2dc58b55d5 construct: Add conf item for output buffer size. 2022-08-05 17:57:19 -07:00
Jason Volk 11c5562173 construct::console: Fix counter possibly preempted by exception. 2022-07-21 13:15:14 -07:00
Jason Volk 31dad11e16 construct::console: Stream output directly. 2022-07-19 14:26:23 -07:00
Jason Volk b815ac8bec ircd::fs: Eliminate user-defined ctors on various opts for designated inits. 2022-06-19 20:27:13 -07:00
Jason Volk 8e1c80e6ac construct: Fix combinations of -execute and -console ignoring the latter. 2022-06-17 21:11:53 -07:00
Jason Volk 4ff9176086 construct: Simplify run::level wait mechanism on init. 2022-06-17 21:11:53 -07:00
Jason Volk da5fa1217a construct::console: Improve interrupt mask toggling for sleep. 2021-04-22 12:27:57 -07:00
Jason Volk 7acfa2d7a9 construct::console: Exempt console from ctx::watchdog cycle warnings. 2021-04-22 12:27:57 -07:00
Jason Volk 6da0291562 construct::console: Improve main sequence; extension module unload related. 2021-04-22 12:27:57 -07:00
Jason Volk 85a509f004 construct: Fix proper interruption/termination reenable for watch cmd. 2021-04-22 12:27:57 -07:00
Jason Volk 07ec766ff9 ircd::ios: Consolidate dispatch/post/defer interfaces; minor fixes. 2020-12-20 06:02:50 -08:00
Jason Volk 0492090b56 construct: Synchronize smoketest quit action with console command completion. 2020-09-27 17:17:00 -07:00
Jason Volk d2fd7488fe construct: Condition to bypass one-time console instruction output. 2020-07-20 22:44:53 -07:00
Jason Volk cd9faf8c20 construct::console: Allocate output buffer at class level. 2020-05-25 01:05:26 -07:00
Jason Volk 94ff1fbafe cosntruct: Add multi-command -execute support. 2020-04-24 16:42:15 -07:00
Jason Volk 3c556043fd construct: Improve console termination related. 2019-10-03 16:08:16 -07:00
Jason Volk 52a6c82a93 construct::console: Use context::DISPATCH flag for faster response. 2019-09-15 19:36:39 -07:00
Jason Volk 34898aaea0 construct: Make interruption during cmd in watch. 2019-09-11 18:29:24 -07:00
Jason Volk b09c0a464a construct: Allow millisecond sleep times for watch command. 2019-09-11 17:47:36 -07:00
Jason Volk 224c67032a modules/console: Show help rather than bad command if possible. 2019-08-20 21:23:18 -07:00
Jason Volk f94f519271 ircd: Add conditioned debugtrap() utility in assert suite.
ircd: Fix some assert header conflicts.

construct: Add TRAP special command handler.
2019-05-28 16:55:41 -07:00
Jason Volk bf3a23b8d2 construct/console: Eliminate extra sleep() after output done. 2019-04-19 19:07:12 -07:00
Jason Volk 169abb0676 construct/console: Add a couple more halting options. 2019-02-22 15:40:52 -08:00
Jason Volk 944f5968e6 construct: Add primitive console history. 2019-02-09 18:43:05 -08:00
Jason Volk 4827ab4103 Construct: Split headers. 2019-02-09 18:43:05 -08:00
Jason Volk d639eceba2 ircd: Move runlevel related into ircd::run:: namespace. 2019-01-18 09:08:56 -08:00
Jason Volk 23d8396652 construct: Suppress log output during interval, not during cmd. 2018-12-24 16:15:23 -08:00
Jason Volk f56488dda2 construct: Add a console watch cmd. 2018-12-23 18:52:29 -08:00
Jason Volk 4c6f90f9e5 construct: Add interruption point before waiting for input. 2018-12-17 12:16:26 -08:00
Jason Volk 955c5ccfa1 construct: Don't exempt the console from watchdog warnings. 2018-12-15 20:29:54 -08:00
Jason Volk 399198deac ircd::ctx: Add flags for slice and stack usage watchdog exemption. 2018-12-13 16:21:54 -08:00
Jason Volk 1906ac57b7 construct: Restructure signal handling to object, unit; restructure console into object. 2018-12-11 16:30:28 -08:00
Jason Volk 02f2753487 construct: Abort console on entry into runlevel QUIT as well. 2018-11-13 10:52:25 -08:00
Jason Volk 1b23a7448c construct: Add console record cmd to dump output to a logfile. 2018-11-13 10:52:21 -08:00
Jason Volk 10e358d835 modules/console: Add the die cmd; move exit cmd. 2018-11-13 10:40:00 -08:00
Jason Volk 73def04e3e construct: Use conf items for console output ratelimits. 2018-11-13 10:39:56 -08:00
Jason Volk 8931ce8b38 construct: Add conf item for console stack size; minor cleanup. 2018-11-13 09:43:32 -08:00
Jason Volk eb28961561 construct: Minor cleanup. 2018-11-03 04:06:56 -07:00
Jason Volk 9cee6a40c9 construct: Interruption point after command. 2018-08-17 14:26:44 -07:00
Jason Volk eec3196ef0 console: Increase the input buffer; take off stack. 2018-06-06 10:50:41 -07:00
Jason Volk b2b5d6abce construct: Simplify various behavior based on runlevel. 2018-05-19 18:49:05 -07:00
Jason Volk 7bf9736a23 construct: Remove SIGTSTP related stuff; minor cleanup. 2018-05-07 19:22:41 -07:00
Jason Volk 024912d072 construct: Ensure console_termstop executes in ctx. 2018-05-07 19:21:00 -07:00
Jason Volk 0df06b0b62 construct: Show console message only once per execution. 2018-04-26 03:23:48 -07:00
Jason Volk 5b6ffdaed2 construct: Update console msg; repurpose exit cmd; various cleanup. 2018-04-13 17:40:37 -07:00
Jason Volk c61186fb8f construct: Slightly slower console output throttle. 2018-04-08 12:38:38 -07:00