Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | restore errno in error handler HEAD master | Leah Neukirchen | 2022-04-12 | 1 | -0/+4 |
| | |||||
* | formatting | Leah Neukirchen | 2022-02-16 | 1 | -22/+36 |
| | |||||
* | rvnitctl: hack some start/stop commands ala sv | Leah Neukirchen | 2022-02-12 | 1 | -1/+91 |
| | | | | | This is quite ugly still but shows a polling approach works. Services need to be up/down for 250ms for the start/stop to succeed. | ||||
* | pause when having no children during uptime | Leah Neukirchen | 2022-02-12 | 1 | -2/+5 |
| | |||||
* | return pid=-1 in status when exec didn't run yet | Leah Neukirchen | 2022-02-12 | 1 | -1/+1 |
| | | | | | | The restart delay is run in the child, but before setsid, so the PGID equals our PID until after that. This can be used to detect flapping services. | ||||
* | rvnitctl: validate command | Leah Neukirchen | 2022-02-12 | 1 | -1/+17 |
| | |||||
* | consistently send SIGCONT after SIGTERM, to work for stopped processes | Leah Neukirchen | 2022-02-12 | 1 | -2/+7 |
| | |||||
* | on shutdown, don't ignore signals as that will leak to children | Leah Neukirchen | 2022-02-12 | 1 | -3/+6 |
| | | | | | Instead, keep the on_signal handler, which does nothing really anymore, and enable SA_RESTART to avoid EINTR now. | ||||
* | set umask to 0022 when pid 1 | Leah Neukirchen | 2022-02-10 | 1 | -0/+1 |
| | | | | This is kernel default for init, but may not be in a container. | ||||
* | add Dockerfile.build | Leah Neukirchen | 2022-02-08 | 1 | -0/+9 |
| | |||||
* | docker stuff | Leah Neukirchen | 2022-02-08 | 2 | -0/+25 |
| | |||||
* | logger_loop: fix control logic | Leah Neukirchen | 2022-02-03 | 1 | -2/+4 |
| | |||||
* | detect close of selflog when POLLIN was set | Leah Neukirchen | 2022-02-03 | 1 | -0/+4 |
| | |||||
* | detect closed pipes in logger_loop where POLLIN was set | Leah Neukirchen | 2022-02-03 | 1 | -0/+7 |
| | |||||
* | logging tweaks | Leah Neukirchen | 2022-02-03 | 1 | -7/+3 |
| | |||||
* | rewrite timedwait using a self-pipe | Leah Neukirchen | 2022-02-03 | 1 | -39/+56 |
| | | | | OpenBSD doesn't implement sigtimedwait. | ||||
* | oops | Leah Neukirchen | 2022-02-03 | 1 | -0/+0 |
| | |||||
* | cleaner handling of fatal boot errors | Leah Neukirchen | 2022-01-31 | 2 | -3/+2 |
| | |||||
* | move want_reboot into want_shutdown, put under services_lock during runtime | Leah Neukirchen | 2022-01-31 | 2 | -19/+40 |
| | |||||
* | put want_rescan/want_rescandir inside services_lock | Leah Neukirchen | 2022-01-31 | 2 | -6/+8 |
| | |||||
* | don't log microseconds to console, less clutter | Leah Neukirchen | 2022-01-28 | 1 | -2/+2 |
| | |||||
* | handle closed pipes in logger and close other end too | Leah Neukirchen | 2022-01-28 | 1 | -1/+21 |
| | |||||
* | close writing pipe end after oneshots finish | Leah Neukirchen | 2022-01-28 | 1 | -1/+10 |
| | |||||
* | MANUAL: rewrite logging part a bit | Leah Neukirchen | 2022-01-28 | 1 | -9/+11 |
| | |||||
* | add a manual | Leah Neukirchen | 2022-01-27 | 1 | -0/+104 |
| | |||||
* | linux: mount /dev if /dev/null is not found | Leah Neukirchen | 2022-01-27 | 1 | -3/+5 |
| | |||||
* | linux: don't mount /proc, we don't need it | Leah Neukirchen | 2022-01-27 | 1 | -4/+0 |
| | |||||
* | spawn daemons with closed stdin | Leah Neukirchen | 2022-01-27 | 1 | -0/+16 |
| | | | | This also prevents them from getting controlling tty. | ||||
* | fix deadlock | Leah Neukirchen | 2022-01-27 | 1 | -0/+1 |
| | |||||
* | prefix perror with rvnit: | Leah Neukirchen | 2022-01-27 | 1 | -7/+7 |
| | |||||
* | shutdown on SIGTERM unless we are the real pid 1 | Leah Neukirchen | 2022-01-27 | 1 | -22/+28 |
| | | | | | | This is useful as a supervision daemon and inside containers. Unify signal handling into one function. | ||||
* | contrib: update | Leah Neukirchen | 2022-01-27 | 13 | -26/+55 |
| | |||||
* | linux: shutdown/reboot when pid 1 | Leah Neukirchen | 2022-01-27 | 1 | -0/+14 |
| | |||||
* | allow shutdown during bringup | Leah Neukirchen | 2022-01-27 | 1 | -8/+9 |
| | |||||
* | linux: take over ctrl-alt-del handling when reasonable | Leah Neukirchen | 2022-01-27 | 1 | -4/+12 |
| | |||||
* | support early mounting of /proc and /run on linux | Leah Neukirchen | 2022-01-27 | 1 | -7/+43 |
| | |||||
* | sig_atomic_t should be used with volatile | Leah Neukirchen | 2022-01-27 | 1 | -4/+4 |
| | |||||
* | pid1: ensure PATH default value | Leah Neukirchen | 2022-01-27 | 1 | -1/+3 |
| | |||||
* | default to /etc/rvnit | Leah Neukirchen | 2022-01-27 | 1 | -5/+7 |
| | |||||
* | always log into globallogfd | Leah Neukirchen | 2022-01-16 | 1 | -7/+4 |
| | | | | | This ensures we have complete logs when the global logger starts (as long as it fits into a pipe buffer). | ||||
* | use ioctl(0, TIOCSCTTY, 0) during startup | Leah Neukirchen | 2022-01-16 | 1 | -4/+4 |
| | | | | | Only oneshot will grab the controlling tty and release it when they exit; no force needed. | ||||
* | when pid 1, make oneshot startup services control the tty | Leah Neukirchen | 2022-01-07 | 1 | -2/+30 |
| | |||||
* | log enabling/disabling of global logger | Leah Neukirchen | 2022-01-07 | 1 | -0/+2 |
| | |||||
* | fix includes | Leah Neukirchen | 2022-01-07 | 2 | -1/+3 |
| | |||||
* | simplify CLOEXEC handling | Leah Neukirchen | 2022-01-07 | 1 | -14/+12 |
| | |||||
* | add global logging support (G) | Leah Neukirchen | 2022-01-07 | 1 | -4/+60 |
| | |||||
* | reboot on SIGINT, as this is what ctrl-alt-del will send | Leah Neukirchen | 2022-01-07 | 1 | -0/+1 |
| | | | | Perhaps make this configurable at some point. | ||||
* | contrib: update | Leah Neukirchen | 2022-01-07 | 23 | -3/+4 |
| | |||||
* | move socket by default to /run/rvnit/rvnit.sock and create with perm 0700 | Leah Neukirchen | 2022-01-07 | 2 | -2/+20 |
| | |||||
* | pass service directory as argv[1] | Leah Neukirchen | 2022-01-07 | 1 | -6/+11 |
| |