From 4c2f7e55877aec6ede5dac7354ca401891750962 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Fri, 29 Oct 2021 11:45:32 +0200 Subject: Add flag to run in the foreground slowcgi already has the -d flag to disable forking, but that particular flag also stops slowcgi from logging to syslog and is intended for debugging purposes. Ordinarily this would be fine, but sadly we know of no clean way to track the PID of a forked process with Gentoo's OpenRC and its start-stop-daemon(8). We could add support to write a pidfile instead, but since we want to support multiple invocations of slowcgi through OpenRC and ${RC_SVCNAME}, we need a way of specifying the pidfile location in the init script itself. To solve this reasonably cleanly, add a flag that *only* controls whether or not the program daemonizes or not. Make sure to mention this in the manual too. --- slowcgi.8 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'slowcgi.8') diff --git a/slowcgi.8 b/slowcgi.8 index e1f0afb..34f5f53 100644 --- a/slowcgi.8 +++ b/slowcgi.8 @@ -22,7 +22,7 @@ .Nd a FastCGI to CGI wrapper server .Sh SYNOPSIS .Nm -.Op Fl dv +.Op Fl dfv .Op Fl p Ar path .Op Fl s Ar socket .Op Fl t Ar timeout @@ -65,6 +65,10 @@ Do not daemonize. If this option is specified, .Nm will run in the foreground and log to stderr. +.It Fl f +As +.Fl d , +but log to syslog. .It Fl p Ar path .Xr chroot 2 to -- cgit v1.2.3-2-gb3c3