aboutsummaryrefslogtreecommitdiffstats
path: root/src/shutdown/s6-linux-init-shutdownd.c
Commit message (Collapse)AuthorAgeFilesLines
* Change stage 4 commands to use external prefixLaurent Bercot2026-04-301-2/+2
| | | | | | | | | | | | | If you are using slashpackage or an equivalent full-versioned fs hierarchy, if you upgrade s6-l-i, delete the old package, do not restart the s6-linux-init-shutdownd service, and reboot, shutdownd will create a stage 4 script using old full-versioned paths, and your reboot will fail in stage 4, which is very bad since nothing is running anymore so recovery is impossible. (Destructors should never fail.) To prevent that from happening, use non-versioned paths to s6-l-i commands in stage 4.
* stage4 typo fixLaurent Bercot2024-07-021-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Remove error message when rc.shutdown.final script is not foundSertonix2024-06-161-2/+2
| | | | Signed-off-by: Sertonix <sertonix@posteo.net>
* Adapt to skalibs-2.14Laurent Bercot2023-09-091-1/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Use open2() safe wrapperLaurent Bercot2023-07-061-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add better debug, fix svscan control pipe pathLaurent Bercot2023-06-211-3/+14
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Better unsupervise_tree in shutdowndLaurent Bercot2023-06-201-2/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Rescan after unsupervising tree in shutdowndLaurent Bercot2023-06-191-0/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add notification to shutdowndLaurent Bercot2023-06-061-2/+15
| | | | | | This saves 1 second between stage 3 and stage 4. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 1.1.0.0; remove early utmpd supportLaurent Bercot2023-02-101-1/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 1.0.8.1Laurent Bercot2022-11-291-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Make scandir compile-time configurableLaurent Bercot2022-06-131-1/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Get the supervision tree rid of any control terminalLaurent Bercot2022-01-131-4/+4
| | | | 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>
* 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>
* Prepare for 1.0.6.4, adapt to skalibs-2.11.0.0Laurent Bercot2021-08-101-7/+7
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* shutdownd: unsupervise even when rename() failsLaurent Bercot2021-03-191-8/+7
|
* bugfix: actually log to catch-all in shutdownd.Laurent Bercot2021-01-271-10/+22
| | | | Also support more options in telinit.
* Make it work with the new s6. Add s6-linux-init-nuke.Laurent Bercot2020-12-091-2/+2
|
* Adapt to skalibs-2.10.0.0 and s6-2.10.0.0Laurent Bercot2020-11-301-3/+11
|
* Add -C and -B options, prepare for 1.0.4.0Laurent Bercot2020-01-191-34/+70
|
* shutdown protocol now transmits a timeout; move to stopwatch APILaurent Bercot2019-09-061-1/+3
|
* Add stage 4 hook supportLaurent Bercot2019-08-191-0/+6
|
* remove extra if branch in shutdownd; prepare for 1.0.2.1Laurent Bercot2019-07-181-6/+0
|
* Correctly (hopefully) unsupervise stuff before stage 4Laurent Bercot2019-05-041-6/+44
|
* Fix 'what' bugLaurent Bercot2019-05-021-15/+9
|
* Some printf debugging...Laurent Bercot2019-05-021-0/+6
|
* Small tweaksLaurent Bercot2019-05-021-3/+4
|
* shutdownd kills most of the supervision tree before stage 4Laurent Bercot2019-04-301-2/+41
|
* More shutdownd fixesLaurent Bercot2019-04-281-4/+4
|
* Fix pipe reading in shutdownLaurent Bercot2019-04-281-3/+3
|
* Fix stage2 and stage3 invocation pathsLaurent Bercot2019-04-281-2/+2
|
* Make a single hpr. Full doc, first draft.Laurent Bercot2019-04-261-55/+58
|
* It builds! Tomorrow: skeletons for stage2, stage3 and runlevel scripts.Laurent Bercot2019-04-161-0/+228