~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to services/usrmgt-server

  • Committer: William Grant
  • Date: 2009-02-23 23:47:02 UTC
  • mfrom: (1099.1.211 new-dispatch)
  • Revision ID: grantw@unimelb.edu.au-20090223234702-db4b1llly46ignwo
Merge from lp:~ivle-dev/ivle/new-dispatch.

Pretty much everything changes. Reread the setup docs. Backup your databases.
Every file is now in a different installed location, the configuration system
is rewritten, the dispatch system is rewritten, URLs are different, the
database is different, worksheets and exercises are no longer on the
filesystem, we use a templating engine, jail service protocols are rewritten,
we don't repeat ourselves, we have authorization rewritten, phpBB is gone,
and probably lots of other things that I cannot remember.

This is certainly the biggest commit I have ever made, and hopefully
the largest I ever will.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
    }
125
125
 
126
126
def initializer():
 
127
    logging.basicConfig(filename="/var/log/usrmgt.log", level=logging.INFO)
 
128
    logging.info("Starting usrmgt server on port %d (pid = %d)" %
 
129
                 (ivle.conf.usrmgt_port, pid))
 
130
 
127
131
    try:
128
132
        pidfile = open('/var/run/usrmgt-server.pid', 'w')
129
133
        pidfile.write('%d\n' % os.getpid())
149
153
if __name__ == "__main__":
150
154
    pid = os.getpid()
151
155
 
152
 
    logging.basicConfig(filename="/var/log/usrmgt.log", level=logging.INFO)
153
 
    logging.info("Starting usrmgt server on port %d (pid = %d)" %
154
 
                 (ivle.conf.usrmgt_port, pid))
155
 
 
156
156
    ivle.chat.start_server(ivle.conf.usrmgt_port, ivle.conf.usrmgt_magic,
157
157
                           True, dispatch, initializer)