aboutsummaryrefslogtreecommitdiffstats
path: root/src/shutdown
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-102-2/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 1.0.8.1Laurent Bercot2022-11-295-5/+6
| | | | 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>
* 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>
* 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-105-18/+18
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Clean up the wtmp messLaurent Bercot2021-04-191-1/+5
|
* shutdownd: unsupervise even when rename() failsLaurent Bercot2021-03-191-8/+7
|
* 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-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
|
* 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
|
* Include posixishard as late as possibleLaurent Bercot2020-03-211-1/+1
|
* Add -C and -B options, prepare for 1.0.4.0Laurent Bercot2020-01-192-38/+76
|
* Remove tainnow.lib dependencyLaurent Bercot2019-09-213-3/+3
|
* 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
|
* Add stage 4 hook supportLaurent Bercot2019-08-191-0/+6
|
* Don't forget to sync before rebootingLaurent Bercot2019-07-281-0/+1
|
* remove extra if branch in shutdownd; prepare for 1.0.2.1Laurent Bercot2019-07-181-6/+0
|
* Add -H and -P to s6-l-i-shutdown, prepare for 1.0.2.0Laurent Bercot2019-06-091-2/+10
|
* No utmpx errors; no additional /dev/console message when shutdown -a failsLaurent Bercot2019-05-121-11/+1
|
* Careful with that stack, EugeneLaurent Bercot2019-05-071-1/+1
|
* Fix hpr_wall utmp access, so is ut_id entirely unused?Laurent Bercot2019-05-061-9/+3
|
* Fix shutdown time bugLaurent Bercot2019-05-061-4/+4
|
* fix hpr -w, refactor shutdownLaurent Bercot2019-05-062-13/+10
|
* Correctly (hopefully) unsupervise stuff before stage 4Laurent Bercot2019-05-042-6/+45
|
* Fix 'what' bugLaurent Bercot2019-05-021-15/+9
|
* Some printf debugging...Laurent Bercot2019-05-021-0/+6
|
* Small tweaksLaurent Bercot2019-05-022-4/+5
|
* shutdownd kills most of the supervision tree before stage 4Laurent Bercot2019-04-301-2/+41
|
* More bugfixes, glibc multilib workaroundLaurent Bercot2019-04-281-0/+13
|
* More shutdownd fixesLaurent Bercot2019-04-281-4/+4
|
* Fix pipe reading in shutdownLaurent Bercot2019-04-281-3/+3
|