about summary refs log tree commit diff
Commit message (Collapse)AuthorAge
* Clean up includesJune McEnroe2020-08-17
|
* Log service uptime in statusJune McEnroe2020-08-17
|
* Add copy of AGPLv3June McEnroe2020-08-17
|
* Document target platformsJune McEnroe2020-08-17
| | | | I really want to avoid adding a README...
* Remove useless setprogname callJune McEnroe2020-08-17
|
* Add OpenBSD rc scriptJune McEnroe2020-08-17
|
* Use BSD make syntax to configure for OpenBSDJune McEnroe2020-08-17
|
* Use pledge(2) and unveil(2) on OpenBSDJune McEnroe2020-08-17
|
* Use a separate fd for the fake fifo writerJune McEnroe2020-08-17
| | | | | | | 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.
* Use a non-blocking lock on the PID fileJune McEnroe2020-08-17
|
* Truncate PID file after opening and lockingJune McEnroe2020-08-17
|
* Simplify parseConfig error handlingJune McEnroe2020-08-17
|
* Properly handle command line truncationJune McEnroe2020-08-17
| | | | Unlikely to happen since ARG_MAX is 256K, but...
* Flesh out documentation and improve examplesJune McEnroe2020-08-17
|
* Add drop commandJune McEnroe2020-08-16
|
* Only call setgroups as rootJune McEnroe2020-08-16
| | | | setgroups fails when already running as a user.
* Don't set LOGNAMEJune McEnroe2020-08-16
| | | | LOGNAME is a SysV thing. This is a BSD program.
* Add privileged servicesJune McEnroe2020-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 servicesJune McEnroe2020-08-16
|
* Use process groups for servicesJune McEnroe2020-08-16
| | | | This lets us properly signal services with child processes of their own.
* Set title after reloadJune McEnroe2020-08-16
|
* Set title on control commandsJune McEnroe2020-08-15
| | | | If a control command starts a service, the title should be updated.
* Add 126 to hardcoded stop exitsJune McEnroe2020-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
* Remove EX_CONFIG from default stopexitsJune McEnroe2020-08-15
| | | | I've used it for "remote" configuration which could change.
* Avoid "control named pipe" phraseJune McEnroe2020-08-15
|
* Check if pipe is writable in wrapperJune McEnroe2020-08-15
|
* Parse config laterJune McEnroe2020-08-15
| | | | | This is just to keep the list of open file descriptors tidier, since parsing the config creates many pipes.
* Only log signals other than SIGTERMJune McEnroe2020-08-15
|
* Clarify restart interval in catsitd manualJune McEnroe2020-08-15
|
* Fix resetting restart interval with explicit restartJune McEnroe2020-08-15
|
* Add reset interval after which restart interval is resetJune McEnroe2020-08-15
|
* Log when service name pattern doesn't matchJune McEnroe2020-08-15
|
* Add FreeBSD rc scriptJune McEnroe2020-08-15
| | | | I'm expecting to also have an OpenBSD rc script.
* Call setproctitle with number of servicesJune McEnroe2020-08-15
|
* Rename project to catsitJune McEnroe2020-08-15
|
* Use only LOG_NOTICE and LOG_WARNINGJune McEnroe2020-08-15
| | | | | These are the two priorities that go to a normal place (/var/log/messages) by default.
* Make log messages consistentJune McEnroe2020-08-15
|
* Remove closelog callJune McEnroe2020-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 statusJune McEnroe2020-08-15
|
* Parse control commandsJune McEnroe2020-08-15
|
* Read service pipesJune McEnroe2020-08-15
| | | | | Changed line reading functions to return const char * because modifying the strings by adding '\0' into them screws up the following call.
* Implement non-blocking line-buffered readingJune McEnroe2020-08-15
|
* Generate tags fileJune McEnroe2020-08-15
|
* Just use CLOCK_MONOTONIC and clean up includesJune McEnroe2020-08-15
| | | | CLOCK_MONOTONIC exists everywhere.
* Reap childrenJune McEnroe2020-08-15
|
* Implement serviceSignal, serviceStop, serviceRestartJune McEnroe2020-08-14
|
* Reset restartInterval and restartDeadline on startJune McEnroe2020-08-14
|
* Switch to timespec for timeoutsJune McEnroe2020-08-14
| | | | Can be passed to ppoll(2) directly.
* Implement serviceStartJune McEnroe2020-08-14
|
* Flesh out Service structJune McEnroe2020-08-14
|