summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* restore errno in error handler HEAD masterLeah Neukirchen2022-04-121-0/+4
|
* formattingLeah Neukirchen2022-02-161-22/+36
|
* rvnitctl: hack some start/stop commands ala svLeah Neukirchen2022-02-121-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 uptimeLeah Neukirchen2022-02-121-2/+5
|
* return pid=-1 in status when exec didn't run yetLeah Neukirchen2022-02-121-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 commandLeah Neukirchen2022-02-121-1/+17
|
* consistently send SIGCONT after SIGTERM, to work for stopped processesLeah Neukirchen2022-02-121-2/+7
|
* on shutdown, don't ignore signals as that will leak to childrenLeah Neukirchen2022-02-121-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 1Leah Neukirchen2022-02-101-0/+1
| | | | This is kernel default for init, but may not be in a container.
* add Dockerfile.buildLeah Neukirchen2022-02-081-0/+9
|
* docker stuffLeah Neukirchen2022-02-082-0/+25
|
* logger_loop: fix control logicLeah Neukirchen2022-02-031-2/+4
|
* detect close of selflog when POLLIN was setLeah Neukirchen2022-02-031-0/+4
|
* detect closed pipes in logger_loop where POLLIN was setLeah Neukirchen2022-02-031-0/+7
|
* logging tweaksLeah Neukirchen2022-02-031-7/+3
|
* rewrite timedwait using a self-pipeLeah Neukirchen2022-02-031-39/+56
| | | | OpenBSD doesn't implement sigtimedwait.
* oopsLeah Neukirchen2022-02-031-0/+0
|
* cleaner handling of fatal boot errorsLeah Neukirchen2022-01-312-3/+2
|
* move want_reboot into want_shutdown, put under services_lock during runtimeLeah Neukirchen2022-01-312-19/+40
|
* put want_rescan/want_rescandir inside services_lockLeah Neukirchen2022-01-312-6/+8
|
* don't log microseconds to console, less clutterLeah Neukirchen2022-01-281-2/+2
|
* handle closed pipes in logger and close other end tooLeah Neukirchen2022-01-281-1/+21
|
* close writing pipe end after oneshots finishLeah Neukirchen2022-01-281-1/+10
|
* MANUAL: rewrite logging part a bitLeah Neukirchen2022-01-281-9/+11
|
* add a manualLeah Neukirchen2022-01-271-0/+104
|
* linux: mount /dev if /dev/null is not foundLeah Neukirchen2022-01-271-3/+5
|
* linux: don't mount /proc, we don't need itLeah Neukirchen2022-01-271-4/+0
|
* spawn daemons with closed stdinLeah Neukirchen2022-01-271-0/+16
| | | | This also prevents them from getting controlling tty.
* fix deadlockLeah Neukirchen2022-01-271-0/+1
|
* prefix perror with rvnit:Leah Neukirchen2022-01-271-7/+7
|
* shutdown on SIGTERM unless we are the real pid 1Leah Neukirchen2022-01-271-22/+28
| | | | | | This is useful as a supervision daemon and inside containers. Unify signal handling into one function.
* contrib: updateLeah Neukirchen2022-01-2713-26/+55
|
* linux: shutdown/reboot when pid 1Leah Neukirchen2022-01-271-0/+14
|
* allow shutdown during bringupLeah Neukirchen2022-01-271-8/+9
|
* linux: take over ctrl-alt-del handling when reasonableLeah Neukirchen2022-01-271-4/+12
|
* support early mounting of /proc and /run on linuxLeah Neukirchen2022-01-271-7/+43
|
* sig_atomic_t should be used with volatileLeah Neukirchen2022-01-271-4/+4
|
* pid1: ensure PATH default valueLeah Neukirchen2022-01-271-1/+3
|
* default to /etc/rvnitLeah Neukirchen2022-01-271-5/+7
|
* always log into globallogfdLeah Neukirchen2022-01-161-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 startupLeah Neukirchen2022-01-161-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 ttyLeah Neukirchen2022-01-071-2/+30
|
* log enabling/disabling of global loggerLeah Neukirchen2022-01-071-0/+2
|
* fix includesLeah Neukirchen2022-01-072-1/+3
|
* simplify CLOEXEC handlingLeah Neukirchen2022-01-071-14/+12
|
* add global logging support (G)Leah Neukirchen2022-01-071-4/+60
|
* reboot on SIGINT, as this is what ctrl-alt-del will sendLeah Neukirchen2022-01-071-0/+1
| | | | Perhaps make this configurable at some point.
* contrib: updateLeah Neukirchen2022-01-0723-3/+4
|
* move socket by default to /run/rvnit/rvnit.sock and create with perm 0700Leah Neukirchen2022-01-072-2/+20
|
* pass service directory as argv[1]Leah Neukirchen2022-01-071-6/+11
|