about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* remove debugging codeLeah Neukirchen2023-12-311-1/+1
|
* nitroctl: allow passing paths as service namesLeah Neukirchen2023-12-311-9/+31
| | | | | Bit hacky still, but services can control themselves with '.' as argument at least.
* don't spawn a finish script if another is runningLeah Neukirchen2023-12-311-0/+3
|
* nitro: drop use of stdioLeah Neukirchen2023-12-311-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 worksLeah Neukirchen2023-12-251-3/+5
|
* nitroctl: better error messagesLeah Neukirchen2023-12-251-2/+2
|
* nitroctl: tweaksLeah Neukirchen2023-12-251-3/+2
|
* add a 7s timeout for the finish scriptLeah Neukirchen2023-12-251-0/+5
|
* send SIGTERM followed by SIGCONT to shutdown processesLeah Neukirchen2023-12-251-2/+6
| | | | This allows shutting down SIGSTOP'ed services.
* run finish scripts for oneshotsLeah Neukirchen2023-12-251-5/+7
|
* don't bother trying to reboot in a container, exiting works just fineLeah Neukirchen2023-12-251-1/+1
|
* message reboot/shutdown only onceLeah Neukirchen2023-12-251-11/+12
|