about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* refactor slaying into main loop HEAD shutdown masterLeah Neukirchen2024-02-111-54/+87
| | | | Also run a final script at the very end, when the process tree is empty.
* enable own_console againLeah Neukirchen2024-02-111-2/+0
|
* remove debugging printLeah Neukirchen2024-02-111-2/+0
|
* cleanupLeah Neukirchen2024-02-081-12/+6
|
* better shutdown message orderLeah Neukirchen2024-02-081-3/+3
|
* reap after SIGKILL againLeah Neukirchen2024-02-081-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 shutdownLeah Neukirchen2024-02-081-1/+1
|
* cancel alarm after reaping processes died due to SIGTERMLeah Neukirchen2024-02-081-1/+2
|
* make nitroctl work with / in service namesLeah Neukirchen2024-02-072-4/+21
|
* fail if nullfd can't be created at allLeah Neukirchen2024-02-071-1/+2
|
* verify service names are not too largeLeah Neukirchen2024-02-071-3/+15
|
* make new log services when using up/down and when creating new instancesLeah Neukirchen2024-02-071-27/+47
|
* check log/downLeah Neukirchen2024-02-071-0/+6
| | | | This is not really useful, but let's be consistent.
* setup script exiting with status 111 means fatalLeah Neukirchen2024-02-071-1/+5
|
* fail when control socket already existsLeah Neukirchen2024-02-071-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 downLeah Neukirchen2024-02-071-0/+5
|
* be more robust when running out of file descriptorsLeah Neukirchen2024-02-071-7/+18
|
* check max servicesLeah Neukirchen2024-02-071-1/+6
| | | | This needs to be handled more gracefully of course.
* report waitpid failuresLeah Neukirchen2024-02-051-3/+4
|
* more robust shutdownLeah Neukirchen2024-01-231-4/+5
|
* delay spawning on fork failsLeah Neukirchen2024-01-231-3/+15
| | | | Tested using sudo -u nobody NITRO_SOCK=... chpst -p 7 ...
* nitroctl: check argv[2] before using itLeah Neukirchen2024-01-231-1/+1
|
* formatting cleanupLeah Neukirchen2024-01-232-58/+58
|
* make the @ part of parameterized service dir names, ignore these dirsLeah Neukirchen2024-01-192-13/+24
|
* assert: print location when debuggingLeah Neukirchen2024-01-191-1/+7
|
* add contrib/nitro_exporter.rbLeah Neukirchen2024-01-181-0/+35
|
* step from PROC_UP to PROC_RESTART on EVNT_EXITEDLeah Neukirchen2024-01-181-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 timestampLeah Neukirchen2024-01-181-0/+1
|
* better error when bind failsLeah Neukirchen2024-01-091-1/+1
|
* use <sys/ioctl.h> for FreeBSDLeah Neukirchen2024-01-091-0/+1
|
* nitroctl: only include utmp when neededLeah Neukirchen2024-01-091-3/+4
|
* more includes for portabilityLeah Neukirchen2024-01-092-0/+3
|
* disable debugging output at compile timeLeah Neukirchen2024-01-092-10/+15
|
* proc_kill: assert before doing damageLeah Neukirchen2024-01-091-4/+4
|
* pass to SYS/finish whether we are rebooting or shutting down as $3Leah Neukirchen2024-01-091-0/+7
|
* add support for parametrized servicesLeah Neukirchen2024-01-091-8/+40
|
* remove internal loggerLeah Neukirchen2024-01-091-83/+10
|
* restart poll immediately on signal, we read the signal from selfpipe anywayLeah Neukirchen2024-01-091-4/+7
|
* send SIGTERM/SIGKILL to all processes on shutdownLeah Neukirchen2024-01-091-0/+23
|
* rename rc.boot to SYSLeah Neukirchen2024-01-061-4/+6
|
* properly shutdown when a setup step just finishesLeah Neukirchen2024-01-061-14/+17
|
* README.md: mention rc.boot/finishLeah Neukirchen2024-01-061-3/+4
|
* run rc.boot/finish at the start of shutdownLeah Neukirchen2024-01-061-8/+29
|
* fix LOG detection -.-Leah Neukirchen2024-01-061-1/+1
|
* oneshots can have finish scripts that run into timeoutsLeah Neukirchen2024-01-061-2/+3
|
* nitroctl: default to list commandLeah Neukirchen2024-01-061-1/+3
|
* nitroctl: can be used as drop-in for init, halt, reboot, poweroff.Leah Neukirchen2024-01-061-9/+130
|
* add README.mdLeah Neukirchen2024-01-021-0/+164
|
* add docker setup for static builds using alpineLeah Neukirchen2024-01-012-0/+20
|
* send stray logs to stdout by defaultLeah Neukirchen2024-01-011-2/+2
|