summary refs log tree commit diff
path: root/rvnit.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-071-1/+2
|
* 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.
* move socket by default to /run/rvnit/rvnit.sock and create with perm 0700Leah Neukirchen2022-01-071-1/+16
|
* pass service directory as argv[1]Leah Neukirchen2022-01-071-6/+11
|
* replace X command with S for ShutdownLeah Neukirchen2022-01-071-1/+1
|
* socket thread: only write data on successLeah Neukirchen2022-01-071-2/+5
|
* logger: wait a very short time for a whole lineLeah Neukirchen2022-01-071-0/+10
|
* propagate reboot state to shutdown oneshotsLeah Neukirchen2022-01-071-0/+5
|
* actually launch loggers before daemons when bootedLeah Neukirchen2022-01-061-1/+3
|
* use lock for services accessLeah Neukirchen2022-01-061-24/+73
| | | | This makes some continue statements ugly. :(
* extract rescandirLeah Neukirchen2022-01-061-41/+88
|
* block all signals in helper threadsLeah Neukirchen2022-01-061-0/+6
|
* use sigaction with explicit .sa_maskLeah Neukirchen2022-01-061-2/+6
|
* explain timedwaitLeah Neukirchen2022-01-061-0/+2
|
* write end of logging pipe doesn't need to be non-blockingLeah Neukirchen2022-01-061-2/+0
|
* use pipe to trigger logger rescanLeah Neukirchen2022-01-061-12/+25
|
* revamp signal handling, use SIGCONT to wake up main threadLeah Neukirchen2022-01-061-15/+28
| | | | support reboot via command
* run previous E service when startup oneshot fails, possibly retryLeah Neukirchen2022-01-061-0/+49
|
* print logs linewise, with timestampLeah Neukirchen2022-01-061-17/+34
|
* cleanupLeah Neukirchen2022-01-061-4/+0
|
* char is enough for stateLeah Neukirchen2022-01-061-5/+7
|
* mark services down when shutting downLeah Neukirchen2022-01-061-0/+2
|
* sort servicesLeah Neukirchen2022-01-061-0/+11
|
* add more statsLeah Neukirchen2022-01-061-1/+4
|
* clean up command parsing, add signal sending commandsLeah Neukirchen2022-01-061-22/+57
|
* shut down loggers by closing the pipe, then slaying if necessaryLeah Neukirchen2022-01-061-12/+18
|
* skip backup files in service dirLeah Neukirchen2022-01-061-0/+3
|
* extract timedwaitLeah Neukirchen2022-01-061-25/+52
|
* make processes session leadersLeah Neukirchen2022-01-061-0/+1
| | | | | This prevents ^C killing them directly as they will be in a different process group.
* simplify loggingLeah Neukirchen2022-01-061-43/+16
|
* initial commitLeah Neukirchen2022-01-061-0/+624