| Commit message (Collapse) | Author | Lines |
|
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.
|
|
original diff from Alfred Morgan (alfred [at] 54 dot org)
ok florian@ and manpage tweaks by me.
|
|
|
|
all the time. Instead debug logging must be requested with the new -v flag. Problem reported and fix provided by weerd@
|
|
Andrew Daugherity (andrew.daugherity AT gmail) pointed out that this
is helpful for his port to linux. For example on openSUSE nginx and
Apache run as different users so a compile time default user won't cut
it.
Man page tweaks jmc@
While here, consistently log users at debug level; from Andrew.
|
|
Pointed out by Andrew Daugherity (andrew.daugherity AT gmail), thanks! Tweaks and OK jmc
|
|
|
|
|
|
|
|
allows to run slowcgi non-chrooted with -p /, requested by at least ratchov@ and henning@. Input by many, OK ratchov@ on a previous diff, "looks good" millert@, man page bits tweak and OK schwarze@ (all some time ago); OK henning@
|
|
|
|
by deraadt@ Tweaks/OK jmc@ OK deraadt@
|
|
|
|
time ago by blambert. OK jmc, blambert
|
|
listen.
okay dcoppa@, henning@, florian@
manpage okay from jmc@
|
|
fast" deraadt@ OK naddy@
|
|
|