Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | 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. | ||||
* | 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 | 1 | -1/+2 |
| | |||||
* | 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. | ||||
* | move socket by default to /run/rvnit/rvnit.sock and create with perm 0700 | Leah Neukirchen | 2022-01-07 | 1 | -1/+16 |
| | |||||
* | pass service directory as argv[1] | Leah Neukirchen | 2022-01-07 | 1 | -6/+11 |
| | |||||
* | replace X command with S for Shutdown | Leah Neukirchen | 2022-01-07 | 1 | -1/+1 |
| | |||||
* | socket thread: only write data on success | Leah Neukirchen | 2022-01-07 | 1 | -2/+5 |
| | |||||
* | logger: wait a very short time for a whole line | Leah Neukirchen | 2022-01-07 | 1 | -0/+10 |
| | |||||
* | propagate reboot state to shutdown oneshots | Leah Neukirchen | 2022-01-07 | 1 | -0/+5 |
| | |||||
* | actually launch loggers before daemons when booted | Leah Neukirchen | 2022-01-06 | 1 | -1/+3 |
| | |||||
* | use lock for services access | Leah Neukirchen | 2022-01-06 | 1 | -24/+73 |
| | | | | This makes some continue statements ugly. :( | ||||
* | extract rescandir | Leah Neukirchen | 2022-01-06 | 1 | -41/+88 |
| | |||||
* | block all signals in helper threads | Leah Neukirchen | 2022-01-06 | 1 | -0/+6 |
| | |||||
* | use sigaction with explicit .sa_mask | Leah Neukirchen | 2022-01-06 | 1 | -2/+6 |
| | |||||
* | explain timedwait | Leah Neukirchen | 2022-01-06 | 1 | -0/+2 |
| | |||||
* | write end of logging pipe doesn't need to be non-blocking | Leah Neukirchen | 2022-01-06 | 1 | -2/+0 |
| | |||||
* | use pipe to trigger logger rescan | Leah Neukirchen | 2022-01-06 | 1 | -12/+25 |
| | |||||
* | revamp signal handling, use SIGCONT to wake up main thread | Leah Neukirchen | 2022-01-06 | 1 | -15/+28 |
| | | | | support reboot via command | ||||
* | run previous E service when startup oneshot fails, possibly retry | Leah Neukirchen | 2022-01-06 | 1 | -0/+49 |
| | |||||
* | print logs linewise, with timestamp | Leah Neukirchen | 2022-01-06 | 1 | -17/+34 |
| | |||||
* | cleanup | Leah Neukirchen | 2022-01-06 | 1 | -4/+0 |
| | |||||
* | char is enough for state | Leah Neukirchen | 2022-01-06 | 1 | -5/+7 |
| | |||||
* | mark services down when shutting down | Leah Neukirchen | 2022-01-06 | 1 | -0/+2 |
| | |||||
* | sort services | Leah Neukirchen | 2022-01-06 | 1 | -0/+11 |
| | |||||
* | add more stats | Leah Neukirchen | 2022-01-06 | 1 | -1/+4 |
| | |||||
* | clean up command parsing, add signal sending commands | Leah Neukirchen | 2022-01-06 | 1 | -22/+57 |
| | |||||
* | shut down loggers by closing the pipe, then slaying if necessary | Leah Neukirchen | 2022-01-06 | 1 | -12/+18 |
| | |||||
* | skip backup files in service dir | Leah Neukirchen | 2022-01-06 | 1 | -0/+3 |
| | |||||
* | extract timedwait | Leah Neukirchen | 2022-01-06 | 1 | -25/+52 |
| | |||||
* | make processes session leaders | Leah Neukirchen | 2022-01-06 | 1 | -0/+1 |
| | | | | | This prevents ^C killing them directly as they will be in a different process group. |