Commit message (Collapse) | Author | ||
---|---|---|---|
2020-08-17 | Use BSD make syntax to configure for OpenBSD | June McEnroe | |
2020-08-17 | Use pledge(2) and unveil(2) on OpenBSD | June McEnroe | |
2020-08-17 | Use a separate fd for the fake fifo writer | June McEnroe | |
From OpenBSD open(2): > A FIFO should either be opened with O_RDONLY or with O_WRONLY. The > behavior for opening a FIFO with O_RDWR is undefined. | |||
2020-08-17 | Use a non-blocking lock on the PID file | June McEnroe | |
2020-08-17 | Truncate PID file after opening and locking | June McEnroe | |
2020-08-17 | Simplify parseConfig error handling | June McEnroe | |
2020-08-17 | Properly handle command line truncation | June McEnroe | |
Unlikely to happen since ARG_MAX is 256K, but... | |||
2020-08-17 | Flesh out documentation and improve examples | June McEnroe | |
2020-08-16 | Add drop command | June McEnroe | |
2020-08-16 | Only call setgroups as root | June McEnroe | |
setgroups fails when already running as a user. | |||
2020-08-16 | Don't set LOGNAME | June McEnroe | |
LOGNAME is a SysV thing. This is a BSD program. | |||
2020-08-16 | Add privileged services | June McEnroe | |
This allows running things like kfcgi which do their own privilege dropping and chrooting. Need to update the examples with something like that. | |||
2020-08-16 | Clear groups list for services | June McEnroe | |
2020-08-16 | Use process groups for services | June McEnroe | |
This lets us properly signal services with child processes of their own. | |||
2020-08-16 | Set title after reload | June McEnroe | |
2020-08-15 | Set title on control commands | June McEnroe | |
If a control command starts a service, the title should be updated. | |||
2020-08-15 | Add 126 to hardcoded stop exits | June McEnroe | |
> If a command is not found, the exit status shall be 127. If the > command name is found, but it is not an executable utility, the exit > status shall be 126. Applications that invoke utilities without using > the shell should use these exit status values to report similar errors. [1]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_08_02 | |||
2020-08-15 | Remove EX_CONFIG from default stopexits | June McEnroe | |
I've used it for "remote" configuration which could change. | |||
2020-08-15 | Avoid "control named pipe" phrase | June McEnroe | |
2020-08-15 | Check if pipe is writable in wrapper | June McEnroe | |
2020-08-15 | Parse config later | June McEnroe | |
This is just to keep the list of open file descriptors tidier, since parsing the config creates many pipes. | |||
2020-08-15 | Only log signals other than SIGTERM | June McEnroe | |
2020-08-15 | Clarify restart interval in catsitd manual | June McEnroe | |
2020-08-15 | Fix resetting restart interval with explicit restart | June McEnroe | |
2020-08-15 | Add reset interval after which restart interval is reset | June McEnroe | |
2020-08-15 | Log when service name pattern doesn't match | June McEnroe | |
2020-08-15 | Add FreeBSD rc script | June McEnroe | |
I'm expecting to also have an OpenBSD rc script. | |||
2020-08-15 | Call setproctitle with number of services | June McEnroe | |
2020-08-15 | Rename project to catsit | June McEnroe | |
2020-08-15 | Use only LOG_NOTICE and LOG_WARNING | June McEnroe | |
These are the two priorities that go to a normal place (/var/log/messages) by default. | |||
2020-08-15 | Make log messages consistent | June McEnroe | |
2020-08-15 | Remove closelog call | June McEnroe | |
It's unclear whether closelog is really safe to call in pre-exec context, so just trust that the log is opened with CLOEXEC. | |||
2020-08-15 | Implement service status | June McEnroe | |
2020-08-15 | Parse control commands | June McEnroe | |
2020-08-15 | Read service pipes | June McEnroe | |
Changed line reading functions to return const char * because modifying the strings by adding '\0' into them screws up the following call. | |||
2020-08-15 | Implement non-blocking line-buffered reading | June McEnroe | |
2020-08-15 | Generate tags file | June McEnroe | |
2020-08-15 | Just use CLOCK_MONOTONIC and clean up includes | June McEnroe | |
CLOCK_MONOTONIC exists everywhere. | |||
2020-08-15 | Reap children | June McEnroe | |
2020-08-14 | Implement serviceSignal, serviceStop, serviceRestart | June McEnroe | |
2020-08-14 | Reset restartInterval and restartDeadline on start | June McEnroe | |
2020-08-14 | Switch to timespec for timeouts | June McEnroe | |
Can be passed to ppoll(2) directly. | |||
2020-08-14 | Implement serviceStart | June McEnroe | |
2020-08-14 | Flesh out Service struct | June McEnroe | |
2020-08-14 | Build environment for services | June McEnroe | |
2020-08-14 | Implement spawntab parsing | June McEnroe | |
2020-08-14 | Open syslog, daemonize, write PID | June McEnroe | |
2020-08-14 | Implement user and group lookup | June McEnroe | |
2020-08-14 | Add install target | June McEnroe | |
2020-08-14 | Add spawnd skeleton | June McEnroe | |