Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | remove debugging code | Leah Neukirchen | 2023-12-31 | 1 | -1/+1 |
| | |||||
* | nitroctl: allow passing paths as service names | Leah Neukirchen | 2023-12-31 | 1 | -9/+31 |
| | | | | | Bit hacky still, but services can control themselves with '.' as argument at least. | ||||
* | don't spawn a finish script if another is running | Leah Neukirchen | 2023-12-31 | 1 | -0/+3 |
| | |||||
* | nitro: drop use of stdio | Leah Neukirchen | 2023-12-31 | 1 | -104/+162 |
| | | | | | | | | This shrinks nitro by 40% on static musl 1.2: text data bss dec hex filename 33985 716 68400 103101 192bd nitro.stdio 20531 188 67256 87975 157a7 nitro | ||||
* | ensure notifydir works | Leah Neukirchen | 2023-12-25 | 1 | -3/+5 |
| | |||||
* | nitroctl: better error messages | Leah Neukirchen | 2023-12-25 | 1 | -2/+2 |
| | |||||
* | nitroctl: tweaks | Leah Neukirchen | 2023-12-25 | 1 | -3/+2 |
| | |||||
* | add a 7s timeout for the finish script | Leah Neukirchen | 2023-12-25 | 1 | -0/+5 |
| | |||||
* | send SIGTERM followed by SIGCONT to shutdown processes | Leah Neukirchen | 2023-12-25 | 1 | -2/+6 |
| | | | | This allows shutting down SIGSTOP'ed services. | ||||
* | run finish scripts for oneshots | Leah Neukirchen | 2023-12-25 | 1 | -5/+7 |
| | |||||
* | don't bother trying to reboot in a container, exiting works just fine | Leah Neukirchen | 2023-12-25 | 1 | -1/+1 |
| | |||||
* | message reboot/shutdown only once | Leah Neukirchen | 2023-12-25 | 1 | -11/+12 |
| |