Fast CGI OpenRC Config
I needed to get fastcgi running on my artix server with OpenRC and ran into issues with the
fastcgi-openrc package from pacman. installing the spawn-fcgi
package and creating a custom
rc file solved my issue. Sharing that config here in case anyone is at their wit’s end and has
exhausted all search-engine links other than this page.
#!/usr/bin/openrc-run
name="fcgiwrap"
description="fcgiwrap cgi daemon"
error_log="/var/log/fcgiwrap.err"
output_log="/var/log/fcgiwrap.log"
supervisor=supervise-daemon
command="spawn-fcgi"
command_args="-n -s /var/run/fcgiwrap.socket -M 766 /usr/sbin/fcgiwrap"
command_user="<user>:<user>"
depend() {
need net localmount
after firewall
}
Tags: