summary refs log tree commit diff
Commit message (Collapse)AuthorAge
* Show /var/log/messages after catsit command 1.4C. McEnroe2021-09-28
|
* Refer to glob(7)C. McEnroe2021-09-28
|
* Allow backslash line continuation in catsit.confC. McEnroe2021-09-28
|
* Allocate pollfd array rather than using a VLAC. McEnroe2021-09-26
|
* Use reallocarray(3)C. McEnroe2021-09-26
|
* Don't parse config until after daemonizationC. McEnroe2021-09-26
| | | | | | | And consequently, until after pledge(2) and unveil(2) on OpenBSD. Replace parsing before daemonization with a simple check that the file is readable. There's not much that can go wrong in parsing anyway.
* OpenBSD: Simplify pledge(2) and unveil(2) strategyC. McEnroe2021-09-26
|
* Fix inverted exec prepend logicC. McEnroe2021-09-25
| | | | Well that's embarrassing.
* Remove freenodeC. McEnroe2021-05-19
|
* Skip leading whitespace on prepends and commands 1.3C. McEnroe2021-03-01
|
* Only prepend exec if command line doesn't contain ;&|()C. McEnroe2021-03-01
|
* Exit with EX_TEMPFAIL when watching filesC. McEnroe2021-03-01
| | | | | | | Reason being that if a file disappears and it takes longer for it to reappear than the default restart interval, the service would just get stopped. Treat an initially missing file the same as a file that gets deleted.
* Add -d flag to catsit-watchC. McEnroe2021-02-27
|
* Add -a to catsit-watchC. McEnroe2021-02-27
|
* Add catsit-timer utilityC. McEnroe2021-02-25
|
* Add catsit-watch utilityC. McEnroe2021-02-25
|
* Drop pledge privileges after daemonization 1.2C. McEnroe2021-02-01
|
* Remove use of "%n"C. McEnroe2021-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.
* Check signals first in the loopC. McEnroe2021-02-01
| | | | | | | Signals need to be checked first in the loop to catch any that were delivered between setting up the signals handlers and entering the loop, i.e. in the time it takes to initially start each of the services.
* Log a message when stopping a service waiting to restart 1.1C. McEnroe2020-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.
* Refactor unveil calls so errors can be reported properlyC. McEnroe2020-11-10
|
* Do not increment signalsC. McEnroe2020-10-27
| | | | | No need to do a read and a write... and it's declared volatile so maybe that's even worse? I don't even know, but there's no point.
* Only look up group if one is namedC. McEnroe2020-10-23
|
* Remove default defines of RUNDIR, ETCDIRC. McEnroe2020-10-23
|
* Set shell scripts executable in buildC. McEnroe2020-10-23
|
* Humanize milliseconds if interval is less than 1sC. McEnroe2020-10-20
| | | | | The intervals are configurable in milliseconds so humanize should be able to display at that precision.
* Humanize restart intervalC. McEnroe2020-10-20
|
* Document default catsit.conf location on OpenBSD 1.0C. McEnroe2020-08-17
|
* Template catsit script with RUNDIRC. McEnroe2020-08-17
|
* Clean up includesC. McEnroe2020-08-17
|
* Log service uptime in statusC. McEnroe2020-08-17
|
* Add copy of AGPLv3C. McEnroe2020-08-17
|
* Document target platformsC. McEnroe2020-08-17
| | | | I really want to avoid adding a README...
* Remove useless setprogname callC. McEnroe2020-08-17
|
* Add OpenBSD rc scriptC. McEnroe2020-08-17
|
* Use BSD make syntax to configure for OpenBSDC. McEnroe2020-08-17
|
* Use pledge(2) and unveil(2) on OpenBSDC. McEnroe2020-08-17
|
* Use a separate fd for the fake fifo writerC. 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 fileC. McEnroe2020-08-17
|
* Truncate PID file after opening and lockingC. McEnroe2020-08-17
|
* Simplify parseConfig error handlingC. McEnroe2020-08-17
|
* Properly handle command line truncationC. McEnroe2020-08-17
| | | | Unlikely to happen since ARG_MAX is 256K, but...
* Flesh out documentation and improve examplesC. McEnroe2020-08-17
|
* Add drop commandC. McEnroe2020-08-16
|
* Only call setgroups as rootC. McEnroe2020-08-16
| | | | setgroups fails when already running as a user.
* Don't set LOGNAMEC. McEnroe2020-08-16
| | | | LOGNAME is a SysV thing. This is a BSD program.
* Add privileged servicesC. 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 servicesC. McEnroe2020-08-16
|
* Use process groups for servicesC. McEnroe2020-08-16
| | | | This lets us properly signal services with child processes of their own.
* Set title after reloadC. McEnroe2020-08-16
|