Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad If AttributeLoad NameLoad attr body ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str NameLoad Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str NameLoad orelse Expr Call NameLoad NameLoad Expr Call NameLoad BinOpAdd NameLoad Str Expr Call NameLoad BinOpAdd NameLoad Str Expr Call NameLoad BinOpAdd NameLoad Str Expr Call NameLoad BinOpAdd NameLoad Str Expr Call NameLoad BinOpAdd NameLoad Str Expr Call NameLoad BinOpAdd NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For NameStore NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad keyword NameLoad keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Print Str handlers ExceptHandler type NameLoad body Pass If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Import alias If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad CompareGtE Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num body Print BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Return Num Print Str Return Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Continue Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Print NameLoad orelse Print BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad Str attr NameLoad decorator_list Assign NameStore Str FunctionDef arguments args NameParam defaults body Import alias Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Assign NameStore BinOpMod Str TupleLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad Assign NameStore NameLoad TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Str handlers ExceptHandler type AttributeLoad NameLoad attr body Print BinOpMod NameLoad TupleLoad NameLoad Return For TupleStore NameStore NameStore NameLoad body If CompareIn NameLoad TupleLoad Str Str body Print BinOpMod NameLoad TupleLoad NameLoad Return Num orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body ImportFrom alias Assign NameStore Dict Str BoolOpOr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot NameLoad body Return Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num If Call AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad orelse Print BinOpMod NameLoad TupleLoad NameLoad Return Num decorator_list
N/A N/A 
Master web site control. Handles virtual host setups using lighttpd as a
front-end.

This controller also handles the lighttpd process itself. So if you have
it enabled in your site's init.d system you should disable it if they are
configured to listen on the same port. The lighttpd server is run under
the pycopia process manager and will be automatically restarted if it
abnormally exits.

The pycopia web framework provides its own configuration file. Changes
made to any installed lighttpd configuration won't be used.

The lighttpd build was configured like this:

./configure --prefix=/usr --with-fam --with-openssl --with-attr --with-pcre --with-zlib --disable-ipv6

 N/A sys N/A os pycopia basicconfig pycopia passwd pycopia socket N/A LTCONFIG /etc/pycopia/lighttpd/lighttpd.conf N/A SITE_CONFIG /etc/pycopia/website.conf start N/A N/A config N/A N/A N/A N/A setup config N/A N/A config DAEMON N/A pycopia daemonize pycopia logfile N/A lf N/A N/A logfile ManagedStdio N/A config LOGFILENAME N/A N/A N/A daemonize daemonize lf pidfile N/A config PIDFILE N/A N/A lf N/A sys stdout N/A fo N/A file N/A config PIDFILE w N/A N/A N/A fo write N/A %s
 N/A N/A N/A os getpid N/A N/A N/A fo close N/A N/A start_proc_manager config lf N/A setup N/A N/A config N/A N/A N/A siteuser N/A N/A passwd getpwnam N/A config SITEUSER N/A siteowner N/A N/A passwd getpwnam N/A config SITEOWNER N/A logroot N/A N/A config get LOGROOT /var/log/lighttpd N/A fqdn N/A N/A socket get_fqdn _mkdir N/A N/A path N/A N/A N/A N/A N/A N/A N/A os path isdir path N/A N/A N/A N/A os mkdir path 493 N/A N/A N/A os chown path N/A siteowner uid N/A siteowner gid N/A N/A vhost N/A N/A N/A config VHOSTS keys N/A N/A vhostdir N/A N/A N/A config SITEROOT / vhost N/A vhostlogdir N/A N/A logroot / vhost N/A N/A N/A N/A N/A os path isdir vhostlogdir N/A N/A N/A N/A os mkdir vhostlogdir 493 N/A N/A N/A os chown vhostlogdir N/A siteuser uid N/A siteuser gid N/A N/A N/A N/A N/A os path isdir vhostdir N/A N/A N/A fqdn vhost N/A N/A N/A N/A os symlink N/A N/A config SITEROOT /localhost vhostdir N/A N/A N/A _mkdir vhostdir N/A N/A _mkdir N/A vhostdir /htdocs N/A N/A _mkdir N/A vhostdir /htdocs-secure N/A N/A _mkdir N/A vhostdir /media N/A N/A _mkdir N/A vhostdir /media/js N/A N/A _mkdir N/A vhostdir /media/css N/A N/A _mkdir N/A vhostdir /media/images N/A start_proc_manager N/A N/A config logfile N/A N/A pycopia proctools pycopia scheduler pycopia asyncio N/A pm N/A N/A proctools get_procmanager N/A libexec N/A N/A config get LIBEXEC /usr/libexec/pycopia N/A N/A name serverlist N/A N/A N/A config VHOSTS items N/A N/A servername serverlist N/A N/A N/A Starting %s for %s. N/A servername name N/A p N/A N/A pm spawnpipe N/A %s/fcgi_server -n %s N/A libexec servername persistent True logfile logfile N/A N/A N/A N/A asyncio poller register p N/A N/A config USEFRONTEND N/A N/A lighttpd N/A N/A proctools which lighttpd N/A N/A asyncio poller N/A N/A N/A N/A pm spawnpipe N/A %s -D -f %s N/A lighttpd LTCONFIG persistent True logfile logfile N/A N/A N/A N/A pm spawnpipe N/A %s -f %s N/A lighttpd LTCONFIG N/A N/A N/A N/A N/A N/A asyncio poller loop N/A No servers, exited loop. N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A asyncio poller N/A N/A N/A N/A N/A asyncio poller unregister_all N/A proc N/A N/A pm getprocs N/A N/A N/A N/A proc killwait N/A N/A N/A N/A os path exists N/A config PIDFILE N/A N/A N/A N/A os unlink N/A config PIDFILE N/A stop N/A N/A config N/A N/A N/A signal N/A N/A N/A N/A os path exists N/A config PIDFILE N/A N/A pid N/A int N/A N/A N/A N/A N/A open N/A config PIDFILE read strip N/A N/A N/A os kill pid N/A signal SIGINT N/A status N/A N/A config N/A N/A pycopia.OS procfs N/A N/A N/A N/A os path exists N/A config PIDFILE N/A N/A pid N/A int N/A N/A N/A N/A N/A open N/A config PIDFILE read strip N/A s N/A N/A procfs ProcStat pid N/A N/A s N/A N/A N/A N/A s command find N/A config SERVERNAME 0 N/A N/A N/A Process manager running: pid %s: %s. N/A pid N/A s cmdline N/A 0 N/A Process manager not running. N/A 1 N/A robots N/A N/A config N/A N/A N/A user N/A N/A passwd getpwnam N/A config SITEOWNER N/A N/A vhost scripts N/A N/A N/A config VHOSTS items N/A N/A rname N/A N/A N/A os path join N/A config SITEROOT vhost htdocs robots.txt N/A N/A N/A N/A os path exists rname N/A N/A N/A fo N/A open rname w N/A N/A N/A fo write N/A _get_robots_txt scripts N/A N/A N/A fo close N/A N/A N/A os chown rname N/A user uid N/A user gid N/A check N/A N/A config N/A N/A N/A Check the lighttpd configuration. pycopia proctools N/A pm N/A N/A proctools get_procmanager N/A lighttpd N/A N/A proctools which lighttpd N/A proc N/A N/A pm spawnpipe N/A %s -p -f %s N/A lighttpd LTCONFIG N/A out N/A N/A proc read N/A es N/A N/A proc wait N/A es N/A N/A out N/A N/A N/A Error: %s N/A es N/A _get_robots_txt N/A N/A scripts N/A N/A N/A s N/A User-agent: * N/A name scripts N/A N/A N/A N/A s append N/A Disallow: /%s N/A name N/A N/A N/A s append N/A N/A N/A join s N/A N/A _doc Pycopia server controller.

%s [-?hnN] [-l <logfilename>] [-p <pidfilename>] [<command>]

Options:
 -? or -h   Show this help.
 -l  override log file name.
 -p  override pid file name.
 -n  do NOT become a daemon when starting.
 -d  Enable automatic debugging.
 -N  do NOT start the web server front end (lighttpd).
 -f  <cffile> Override config file to use.
 -D  <fqdn> Override FQDN config variable.

Where command is one of:
    setup   - create directory structures according to config file entries.
    start   - start all web services and virtual hosts
    stop    - stop a running server
    status  - status of server
    robots  - update robots.txt files.
    check   - Emit the generated lighttpd config, so you can check it.
 main N/A N/A argv N/A N/A N/A getopt N/A daemonize True N/A frontend True N/A dname None N/A servername N/A N/A N/A os path basename N/A argv N/A 0 N/A logfilename N/A /var/log/%s.log N/A servername N/A pidfilename N/A /var/run/%s.pid N/A servername N/A cffile SITE_CONFIG N/A N/A N/A N/A optlist args N/A N/A getopt getopt N/A argv N/A 1 ?hdnNl:p:f:D: N/A N/A N/A N/A getopt GetoptError N/A N/A N/A _doc N/A servername N/A N/A N/A opt optarg optlist N/A N/A N/A opt N/A -? -h N/A N/A N/A _doc N/A servername N/A 2 N/A N/A N/A opt -l N/A N/A logfilename optarg N/A N/A N/A opt -n N/A N/A daemonize False N/A N/A N/A opt -N N/A N/A frontend False N/A N/A N/A opt -D N/A N/A dname optarg N/A N/A N/A opt -f N/A N/A cffile optarg N/A N/A N/A opt -p N/A N/A pidfilename optarg N/A N/A N/A opt -d N/A pycopia autodebug N/A glbl N/A FQDN N/A dname N/A N/A socket get_fqdn N/A config N/A N/A basicconfig get_config cffile globalspace glbl N/A N/A config SERVERNAME servername N/A N/A config LOGFILENAME logfilename N/A N/A config PIDFILE pidfilename N/A N/A config DAEMON daemonize N/A N/A config USEFRONTEND frontend N/A N/A config ARGV args N/A N/A args N/A N/A N/A status config N/A cmd N/A args N/A 0 N/A N/A N/A cmd startswith stat N/A N/A N/A status config N/A N/A N/A N/A cmd startswith set N/A N/A N/A setup config N/A N/A N/A N/A cmd startswith star N/A N/A N/A start config N/A N/A N/A N/A cmd startswith stop N/A N/A N/A stop config N/A N/A N/A N/A cmd startswith rob N/A N/A N/A robots config N/A N/A N/A N/A cmd startswith che N/A N/A N/A check config N/A N/A N/A _doc N/A servername N/A 2 N/A