Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | refactor slaying into main loop HEAD shutdown master | Leah Neukirchen | 2024-02-11 | 1 | -54/+87 |
| | | | | Also run a final script at the very end, when the process tree is empty. | ||||
* | enable own_console again | Leah Neukirchen | 2024-02-11 | 1 | -2/+0 |
| | |||||
* | remove debugging print | Leah Neukirchen | 2024-02-11 | 1 | -2/+0 |
| | |||||
* | cleanup | Leah Neukirchen | 2024-02-08 | 1 | -12/+6 |
| | |||||
* | better shutdown message order | Leah Neukirchen | 2024-02-08 | 1 | -3/+3 |
| | |||||
* | reap after SIGKILL again | Leah Neukirchen | 2024-02-08 | 1 | -0/+8 |
| | | | | | | | | | | | | Strictly speaking not needed, but I think it may case the filesystems to remain EBUSY. Also, when running in a container we don't want to leak zombies to the outside (found out by skarnet). We need the alarm and blocking waitpid, since it's possible (in theory) no process has exited between the kill and first call of waitpid(-1, 0, WNOHANG). | ||||
* | give SIGTERM processes 7 seconds too on shutdown | Leah Neukirchen | 2024-02-08 | 1 | -1/+1 |
| | |||||
* | cancel alarm after reaping processes died due to SIGTERM | Leah Neukirchen | 2024-02-08 | 1 | -1/+2 |
| | |||||
* | make nitroctl work with / in service names | Leah Neukirchen | 2024-02-07 | 2 | -4/+21 |
| | |||||
* | fail if nullfd can't be created at all | Leah Neukirchen | 2024-02-07 | 1 | -1/+2 |
| | |||||
* | verify service names are not too large | Leah Neukirchen | 2024-02-07 | 1 | -3/+15 |
| | |||||
* | make new log services when using up/down and when creating new instances | Leah Neukirchen | 2024-02-07 | 1 | -27/+47 |
| | |||||
* | check log/down | Leah Neukirchen | 2024-02-07 | 1 | -0/+6 |
| | | | | This is not really useful, but let's be consistent. | ||||
* | setup script exiting with status 111 means fatal | Leah Neukirchen | 2024-02-07 | 1 | -1/+5 |
| | |||||
* | fail when control socket already exists | Leah Neukirchen | 2024-02-07 | 1 | -2/+1 |
| | | | | | We don't wanna remove the control socket for a running nitro instance, this serves as an easy check to not have two running at the same time. | ||||
* | remount / read-only before shutting down | Leah Neukirchen | 2024-02-07 | 1 | -0/+5 |
| | |||||
* | be more robust when running out of file descriptors | Leah Neukirchen | 2024-02-07 | 1 | -7/+18 |
| | |||||
* | check max services | Leah Neukirchen | 2024-02-07 | 1 | -1/+6 |
| | | | | This needs to be handled more gracefully of course. | ||||
* | report waitpid failures | Leah Neukirchen | 2024-02-05 | 1 | -3/+4 |
| | |||||
* | more robust shutdown | Leah Neukirchen | 2024-01-23 | 1 | -4/+5 |
| | |||||
* | delay spawning on fork fails | Leah Neukirchen | 2024-01-23 | 1 | -3/+15 |
| | | | | Tested using sudo -u nobody NITRO_SOCK=... chpst -p 7 ... | ||||
* | nitroctl: check argv[2] before using it | Leah Neukirchen | 2024-01-23 | 1 | -1/+1 |
| | |||||
* | formatting cleanup | Leah Neukirchen | 2024-01-23 | 2 | -58/+58 |
| | |||||
* | make the @ part of parameterized service dir names, ignore these dirs | Leah Neukirchen | 2024-01-19 | 2 | -13/+24 |
| | |||||
* | assert: print location when debugging | Leah Neukirchen | 2024-01-19 | 1 | -1/+7 |
| | |||||
* | add contrib/nitro_exporter.rb | Leah Neukirchen | 2024-01-18 | 1 | -0/+35 |
| | |||||
* | step from PROC_UP to PROC_RESTART on EVNT_EXITED | Leah Neukirchen | 2024-01-18 | 1 | -1/+5 |
| | | | | | This usually makes no difference, but when the service is killed, we want to catch the timeout for ./finish. | ||||
* | add_service: initialize startstop timestamp | Leah Neukirchen | 2024-01-18 | 1 | -0/+1 |
| | |||||
* | better error when bind fails | Leah Neukirchen | 2024-01-09 | 1 | -1/+1 |
| | |||||
* | use <sys/ioctl.h> for FreeBSD | Leah Neukirchen | 2024-01-09 | 1 | -0/+1 |
| | |||||
* | nitroctl: only include utmp when needed | Leah Neukirchen | 2024-01-09 | 1 | -3/+4 |
| | |||||
* | more includes for portability | Leah Neukirchen | 2024-01-09 | 2 | -0/+3 |
| | |||||
* | disable debugging output at compile time | Leah Neukirchen | 2024-01-09 | 2 | -10/+15 |
| | |||||
* | proc_kill: assert before doing damage | Leah Neukirchen | 2024-01-09 | 1 | -4/+4 |
| | |||||
* | pass to SYS/finish whether we are rebooting or shutting down as $3 | Leah Neukirchen | 2024-01-09 | 1 | -0/+7 |
| | |||||
* | add support for parametrized services | Leah Neukirchen | 2024-01-09 | 1 | -8/+40 |
| | |||||
* | remove internal logger | Leah Neukirchen | 2024-01-09 | 1 | -83/+10 |
| | |||||
* | restart poll immediately on signal, we read the signal from selfpipe anyway | Leah Neukirchen | 2024-01-09 | 1 | -4/+7 |
| | |||||
* | send SIGTERM/SIGKILL to all processes on shutdown | Leah Neukirchen | 2024-01-09 | 1 | -0/+23 |
| | |||||
* | rename rc.boot to SYS | Leah Neukirchen | 2024-01-06 | 1 | -4/+6 |
| | |||||
* | properly shutdown when a setup step just finishes | Leah Neukirchen | 2024-01-06 | 1 | -14/+17 |
| | |||||
* | README.md: mention rc.boot/finish | Leah Neukirchen | 2024-01-06 | 1 | -3/+4 |
| | |||||
* | run rc.boot/finish at the start of shutdown | Leah Neukirchen | 2024-01-06 | 1 | -8/+29 |
| | |||||
* | fix LOG detection -.- | Leah Neukirchen | 2024-01-06 | 1 | -1/+1 |
| | |||||
* | oneshots can have finish scripts that run into timeouts | Leah Neukirchen | 2024-01-06 | 1 | -2/+3 |
| | |||||
* | nitroctl: default to list command | Leah Neukirchen | 2024-01-06 | 1 | -1/+3 |
| | |||||
* | nitroctl: can be used as drop-in for init, halt, reboot, poweroff. | Leah Neukirchen | 2024-01-06 | 1 | -9/+130 |
| | |||||
* | add README.md | Leah Neukirchen | 2024-01-02 | 1 | -0/+164 |
| | |||||
* | add docker setup for static builds using alpine | Leah Neukirchen | 2024-01-01 | 2 | -0/+20 |
| | |||||
* | send stray logs to stdout by default | Leah Neukirchen | 2024-01-01 | 1 | -2/+2 |
| |