<NME> rsted.fcgi
<BEF> #!/usr/bin/env python2

from flup.server.fcgi import WSGIServer
from application import app

socket_path = app.config.get('SOCKET', os.path.join(app.config.root_path, 'rsted.fcgi'))

WSGIServer(app, bindAddress=socket_path).run()


if not os.path.isdir(full_run_path):
    os.mkdir(full_run_path)

# default options
fcgi_opts = {
    'daemonize': 'yes',
    'pidfile': os.path.join(full_run_path, app.config.get('PID_FILE', 'fastcgi.pid')),
    'method': 'prefork',
    'socket': os.path.join(full_run_path, app.config.get('SOCKET_FILE', 'rsted.sock')),
    'workdir': app.config.root_path,
    'maxrequests': 100,
    'umask': app.config.get('FCGI_UMASK', '002')
}

run_as = app.config.get('RUN_AS')
if run_as:
    fcgi_opts['run_as'] = run_as

args=[]
runfastcgi(app, args, **fcgi_opts)

<MSG> fix mispelled pathname

<DFF> @@ -3,7 +3,6 @@ import os
 from flup.server.fcgi import WSGIServer
 from application import app
 
-socket_path = app.config.get('SOCKET', os.path.join(app.config.root_path, 'rsted.fcgi'))
-
+socket_path = app.config.get('SOCKET', os.path.join(app.config.root_path, 'rsted.sock'))
 WSGIServer(app, bindAddress=socket_path).run()
 

fix mispelled pathname