Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Use reallocarray(3) | June McEnroe | 2021-09-26 |
| | |||
* | Fix inverted exec prepend logic | June McEnroe | 2021-09-25 |
| | | | | Well that's embarrassing. | ||
* | Only prepend exec if command line doesn't contain ;&|() | June McEnroe | 2021-03-01 |
| | |||
* | Remove use of "%n" | June McEnroe | 2021-02-01 |
| | | | | | | | https://cvsweb.openbsd.org/src/lib/libc/stdio/vfprintf.c?rev=1.79&content-type=text/x-cvsweb-markup I think this is silly, as I've said elsewhere, and it's a shame because that was clearly the best way to write this. Oh well. | ||
* | Log a message when stopping a service waiting to restart 1.1 | June McEnroe | 2020-12-15 |
| | | | | | It's a little annoying to have to special-case this, but otherwise there is no confirmation in the log that the restart won't still happen. | ||
* | Humanize milliseconds if interval is less than 1s | June McEnroe | 2020-10-20 |
| | | | | | The intervals are configurable in milliseconds so humanize should be able to display at that precision. | ||
* | Humanize restart interval | June McEnroe | 2020-10-20 |
| | |||
* | Log service uptime in status | June McEnroe | 2020-08-17 |
| | |||
* | Properly handle command line truncation | June McEnroe | 2020-08-17 |
| | | | | Unlikely to happen since ARG_MAX is 256K, but... | ||
* | Add drop command | June McEnroe | 2020-08-16 |
| | |||
* | Only call setgroups as root | June McEnroe | 2020-08-16 |
| | | | | setgroups fails when already running as a user. | ||
* | Add privileged services | June McEnroe | 2020-08-16 |
| | | | | | | This allows running things like kfcgi which do their own privilege dropping and chrooting. Need to update the examples with something like that. | ||
* | Clear groups list for services | June McEnroe | 2020-08-16 |
| | |||
* | Use process groups for services | June McEnroe | 2020-08-16 |
| | | | | This lets us properly signal services with child processes of their own. | ||
* | Add 126 to hardcoded stop exits | June McEnroe | 2020-08-15 |
| | | | | | | | | | > 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 | ||
* | Only log signals other than SIGTERM | 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 |
| | |||
* | Use only LOG_NOTICE and LOG_WARNING | June McEnroe | 2020-08-15 |
| | | | | | These are the two priorities that go to a normal place (/var/log/messages) by default. | ||
* | Make log messages consistent | June McEnroe | 2020-08-15 |
| | |||
* | Remove closelog call | June McEnroe | 2020-08-15 |
| | | | | | It's unclear whether closelog is really safe to call in pre-exec context, so just trust that the log is opened with CLOEXEC. | ||
* | Implement service status | June McEnroe | 2020-08-15 |
| | |||
* | Read service pipes | June McEnroe | 2020-08-15 |
| | | | | | Changed line reading functions to return const char * because modifying the strings by adding '\0' into them screws up the following call. | ||
* | Just use CLOCK_MONOTONIC and clean up includes | June McEnroe | 2020-08-15 |
| | | | | CLOCK_MONOTONIC exists everywhere. | ||
* | Reap children | June McEnroe | 2020-08-15 |
| | |||
* | Implement serviceSignal, serviceStop, serviceRestart | June McEnroe | 2020-08-14 |
| | |||
* | Reset restartInterval and restartDeadline on start | June McEnroe | 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 |
| | |||
* | Implement user and group lookup | June McEnroe | 2020-08-14 |