#!/sbin/openrc-run

name="fcgiwrap"
description="Simple server for running CGI applications over FastCGI"
command="/usr/bin/spawn-fcgi"
command_user="nginx:nginx"
command_args="-s /var/run/fcgiwrap.socket -u nginx -g nginx -P /var/run/fcgiwrap.pid /usr/bin/fcgiwrap > /var/log/fcgiwrap.log 2>&1"

pidfile="/var/run/fcgiwrap.pid"

depend() {
    use net
    after nginx
}
