aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Transmit console to stage2. Read stage1 envdir verbatim.Laurent Bercot2022-02-181-18/+32
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Halt, not poweroff, containers on SIGTERM (docker stop)Laurent Bercot2022-01-311-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Better usage message for telinit when invoked as initLaurent Bercot2022-01-241-4/+15
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* ctty-passing doesn't look satanic anymore, thx LeahLaurent Bercot2022-01-161-77/+22
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Less ugly version of the satanic versesLaurent Bercot2022-01-151-52/+52
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Better documentation of the satanic versesLaurent Bercot2022-01-131-5/+6
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add satanic verses for ctty-passing in s6-l-iLaurent Bercot2022-01-131-7/+82
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Get the supervision tree rid of any control terminalLaurent Bercot2022-01-132-6/+6
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Catch SIGTERM in containers (for docker stop)Laurent Bercot2022-01-111-1/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Allow normal users to run s6-l-i-hpr/sLaurent Bercot2021-12-282-9/+7
| | | | | | Instead of testing the euid, test writability to the shutdownd pipe. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Fix indentation in s6-l-i-mLaurent Bercot2021-12-141-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add -S option to s6-l-i-m for container sync-on-haltLaurent Bercot2021-11-281-16/+23
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* bugfix: shutdownd: flush the writes to stage 4.new in the container caseLaurent Bercot2021-11-281-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Trivial bugfixLaurent Bercot2021-09-261-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Adapt to s6-2.11.0.0Laurent Bercot2021-09-021-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Make shutdownd work with CONFIG_TTY=nLaurent Bercot2021-08-251-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Support CONFIG_TTY=n where the kernel doesn't even open 0, 1, 2Laurent Bercot2021-08-231-4/+9
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 1.0.6.4, adapt to skalibs-2.11.0.0Laurent Bercot2021-08-109-25/+25
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* newline-terminate generated utmpd run scriptLaurent Bercot2021-05-051-1/+1
|
* Hack s6-l-i-m so it doesn't fail when run as non-rootLaurent Bercot2021-04-231-20/+36
|
* Clean up the wtmp messLaurent Bercot2021-04-192-13/+10
|
* shutdownd: unsupervise even when rename() failsLaurent Bercot2021-03-191-8/+7
|
* bugfix: utmps default should be noneLaurent Bercot2021-02-141-1/+1
|
* Fix them bugsLaurent Bercot2021-02-121-20/+27
|
* bugfix: wall message on non-immediate shutdown(8)Laurent Bercot2021-02-125-42/+99
|
* bugfix: actually log to catch-all in shutdownd.Laurent Bercot2021-01-272-15/+30
| | | | Also support more options in telinit.
* Make it work with the new s6. Add s6-linux-init-nuke.Laurent Bercot2020-12-095-5/+16
|
* Adapt to skalibs-2.10.0.0 and s6-2.10.0.0Laurent Bercot2020-11-304-21/+31
|
* Accept 1 as cmdline runlevel; fix rc.shutdown comment for s6-rcLaurent Bercot2020-11-111-1/+1
|
* Fix s6-l-i-m init $@ bug; prepare for 1.0.5.1Laurent Bercot2020-11-101-1/+1
|
* Change error message on !isatty()Laurent Bercot2020-11-061-1/+1
|
* Fix trivial bugLaurent Bercot2020-11-061-1/+1
|
* Add -i option to shutdown and hprLaurent Bercot2020-11-065-4/+58
|
* Don't test for shutdown.allow in containersLaurent Bercot2020-06-221-4/+8
|
* Properly prefix s6-log in s6-l-i-mLaurent Bercot2020-06-091-1/+1
|
* Include posixishard as late as possibleLaurent Bercot2020-03-211-1/+1
|
* Use s6-sudod -d in runleveldLaurent Bercot2020-03-161-1/+1
|
* Simplify kbrequest managementLaurent Bercot2020-02-261-26/+13
| | | | | | | | | | | | | | - the ioctl never works on /dev/console, so trying to use it on stdin is useless. - /dev/tty0 always exists in a devtmpfs, so the late test is okay. It works on serial consoles too. If no devtmpfs, creating a correct /dev/tty0 is the responsibility of the integrator. - Also added SIGINT blocking before disablecad, to avoid potential early panic. For it to work on kernels without signalfd, it requires the skalibs commit that unblocks selfpipe-trapped signals when not using signalfd. - No such block is needed for kbrequest, because the default action for SIGWINCH is ignore, not terminate.
* Tentative support for kbrequestLaurent Bercot2020-02-262-8/+37
|
* Trigger a poweroff on SIGPWR to init (power failure)Laurent Bercot2020-02-181-0/+1
|
* With the correct deps.makLaurent Bercot2020-01-301-3/+2
|
* Do not attempt to unmount /runLaurent Bercot2020-01-301-1/+5
|
* Small improvements to skel and autogenerationLaurent Bercot2020-01-191-15/+21
|
* Add -C and -B options, prepare for 1.0.4.0Laurent Bercot2020-01-197-113/+286
|
* Don't guard chown, so non-root invocation can fail as expectedLaurent Bercot2019-12-081-1/+1
|
* s6-l-i-m: don't fail when rc.shutdown.final doesn't existLaurent Bercot2019-11-151-6/+6
| | | | | stage4 will print an error message when it tries to spawn it, but since it will reboot right afterwards, who cares.
* Make s6-l-i-m produce update-resistant scripts (use EXTBINPREFIX)Laurent Bercot2019-09-221-11/+11
|
* Remove tainnow.lib dependencyLaurent Bercot2019-09-215-5/+5
|
* Print HPR_BANNER_WALL to all users in shutdown(8) tooLaurent Bercot2019-09-061-1/+9
|
* shutdown protocol now transmits a timeout; move to stopwatch APILaurent Bercot2019-09-063-2/+5
|