Joachim Nilsson
a2f4b35e4e
Fix #77 : Remove deprecated startx and user .conf settings
...
It is strongly recommended to instead use the service stanza to start
XDM/GDM, or use startx after a regular login.
Note: the `user NAME` setting was always reserved for use with startx
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-08-30 15:01:05 +02:00
Joachim Nilsson
1de540dd67
Update external getty TTY documentation, remove limitations
...
Also, provide an agetty example.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-08-30 14:47:15 +02:00
Joachim Nilsson
dec21e758a
Fix #78 : Support agetty cmd line format for external getty
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-08-30 14:44:10 +02:00
Joachim Nilsson
513f03b897
Merge branch 'external-getty-support'
2017-08-27 17:08:21 +02:00
Joachim Nilsson
371fb3d0d0
Add example for using an external getty
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-08-27 17:07:12 +02:00
Joachim Nilsson
f9f1846c8b
Document alternative tty ... config option for external getty
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-08-27 17:03:39 +02:00
Joachim Nilsson
f7b9b7be96
tty.c: Free memory for external getty on tty_unregister()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-08-27 16:57:26 +02:00
Joachim Nilsson
74affb32d3
tty_register(): Fix parser for external getty
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-08-27 16:43:01 +02:00
Joachim Nilsson
675f82a6b9
run_getty2(): Minor fixes only, whitespace + cautionary _exit()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-08-27 16:41:58 +02:00
Joachim Nilsson
19fcfcfef4
Initial support for external getty
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-08-27 15:02:55 +02:00
Joachim Nilsson
7c50d86a55
Restore pre built-in run_getty() as run_getty2()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-08-27 15:01:42 +02:00
Joachim Nilsson
b629348973
Refactor TTY exec, prepare for external getty
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-08-27 15:00:43 +02:00
Joachim Nilsson
7c185b4575
Fix really bizarre inetd builtin example ...
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-08-21 21:23:51 +02:00
Joachim Nilsson
fefa6a93ca
Merge branch 'emergency-shell-improvements'
2017-08-19 20:17:31 +02:00
Joachim Nilsson
299962118a
Update debug section with info on rescue shell, issue #76
2017-08-19 20:16:44 +02:00
Joachim Nilsson
054baed134
Reap zombie processes in emergency shell mode, issue #76
...
The emergency shell is just a Finit debug mode. This patch adresses a
concern from GitHub issue #76 , with zombie processes in this mode.
Emergency shell could be further improved, e.g. informing the real Finit
process of each collected child (zombie) to be restarted if needed.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-08-15 08:09:19 +02:00
Joachim Nilsson
b20fafd9fa
tty.c: Add support for reloading a single TTY
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-14 11:03:59 +02:00
Joachim Nilsson
62081d9525
tty.c: Refactor, break out enabled check + stop/start
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-14 11:03:10 +02:00
Joachim Nilsson
100b4c70e4
tty_enabled(): Simplify, tty_exists() checks for existence
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-14 10:54:51 +02:00
Joachim Nilsson
5631849ced
Travis-CI: Update build dependency, libite --> v1.9.2
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-10 17:48:14 +02:00
Joachim Nilsson
14ee218443
Refactor, use libite (-lite) version of initscr()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-09 16:25:22 +02:00
Joachim Nilsson
52fe525442
Update version requirement for libite, v1.9.2
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-09 16:25:01 +02:00
Joachim Nilsson
fec00377e5
Update documentation for tty .conf option
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-09 15:36:31 +02:00
Joachim Nilsson
c9ab70e30f
Update section on built-in getty, add info on noclear option
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-09 15:18:16 +02:00
Joachim Nilsson
8aef1e76c3
Follow-up to eec32e2: Support for removing TTYs at runtime
...
In commit eec32e2 support for reloading TTY configurations was added.
This patch is a follow-up to that with support for cleaning up and
removing allocated TTYs.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-09 15:05:32 +02:00
Joachim Nilsson
44f69bd575
Check if symlink with lstat(), mtime with stat()
...
With the new scheme using /etc/finit.d/available/, and symlinks from
there to the enabled directory, we need to check mtime of .conf files
using stat(), not lstat() which we need to check if .conf is a symlink.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-09 15:05:32 +02:00
Joachim Nilsson
963b736d8b
tty: Refactor, remove useless runlevel argument
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-09 15:05:32 +02:00
Joachim Nilsson
4cc3aed139
Avoid 2 sec block of Finit when stopping TTYs
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-09 15:05:32 +02:00
Joachim Nilsson
e791e3dbe9
Make silent bootup the default, use --enable-progress for old style
...
This patch disables console heading and bootup progress messages by
default. Use --enable-progress to get the old behavior back, or try
the new HOOK_BANNER and HOOK_SVC_UP to run a custom progress.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-09 15:05:32 +02:00
Joachim Nilsson
d34ee62f77
Update copyright years
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-08 15:32:24 +02:00
Joachim Nilsson
e48901b90f
tty: Clear tty before login: prompt by default, add 'noclear' option
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-08 15:31:59 +02:00
Joachim Nilsson
60f73dc952
tty.c: Refactor parsing of tty .conf stanza in tty_register()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-08 15:30:51 +02:00
Joachim Nilsson
eec32e299b
Allow loading TTYs from /etc/finit.d rather than /etc/finit.conf
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-08 15:28:22 +02:00
Joachim Nilsson
fe362341dc
finit.conf: Remove check config, replaced by fsck over /etc/fstab
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-08 15:01:31 +02:00
Joachim Nilsson
8505db24b7
Refactor, rename local variables
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-08 12:28:52 +02:00
Joachim Nilsson
560adb2065
Remove debug message(s) from tty_fallback()
...
When the TTY fallback mechanism is enabled tty_fallback() prints this
annoying debug message whenever *any* is process is collected by PID 1:
"Not starting fallback (%d) shell, lost pid %d", fallback, lost"
This patch removes it, and a two other useless debug messages.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-08 11:06:28 +02:00
Joachim Nilsson
6676d4b50c
Silence service start/stop *before* launching TTYs
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-08 11:04:50 +02:00
Joachim Nilsson
c1bd3961cf
log_init(): If called with debug disbled set (or restore) LOG_NOTICE
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-08 00:11:24 +02:00
Joachim Nilsson
4fa47eaf71
log_init(): If debug mode enabled, set loglevel LOG_DEBUG
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-08 00:08:27 +02:00
Joachim Nilsson
e5f47024af
early_logit(): If debug mode enable, also print to stderr
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-08 00:07:49 +02:00
Joachim Nilsson
115b5f1ca7
Add HOOK_BANNER for plugins to override the default Finit banner()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-08 00:07:21 +02:00
Joachim Nilsson
878885e2b2
Load plugins much earlier, for future banner plugin
...
This patch moves the plugin loader much earlier, making it possible to
provide a custom banner/logo in a plugin.
To facilitate this move we need to also move banner later and parsing
of the kernel cmdline earlier, right after mouting /proc.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-08 00:05:07 +02:00
Joachim Nilsson
709e4230c8
plugin: Add private method plugin_exists() to check for HOOKs
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-07 23:33:43 +02:00
Joachim Nilsson
46c5e41b68
README: Reduce indentation of code blocks, use ``` instead
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-07 23:18:06 +02:00
Joachim Nilsson
0b43d0dc70
Refactor screen_init(), preparing for migration to libite
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-07 23:00:27 +02:00
Joachim Nilsson
99f3f0291a
Makefile.am: Fix cut-and-paste error
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-04 21:48:16 +02:00
Joachim Nilsson
6d3d190134
reboot: Add search path to libite (-lite) headers and .so
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-04 21:40:46 +02:00
Joachim Nilsson
769659767c
Minor, comment fixes only
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-04 21:12:54 +02:00
Joachim Nilsson
99818f9ce0
Convert banner() and printv() to use new screen_init() values
...
This patch changes the traditional look of the Finit boot sequence.
Now we stick to the screen width probed by screen_init(), or max
132 chars.
Also, some minor cleanup of the currently unused print_timestamp()
method used by printv() when showing [ OK ] or [FAIL] of services
at boot.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-04 20:59:49 +02:00
Joachim Nilsson
be6f0de0df
Add util.c:screen_init() to probe screen size once per boot
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-07-04 20:58:43 +02:00