[Twisted-Python] [PATCH] Bugfixing the twisted-web (not twisted.web) package

Tommi Virtanen tv at twistedmatrix.com
Wed Jul 9 12:38:34 MDT 2003


	Hi. Couldn't find anything newer than 0.3 of
	Moshe's twisted-web package. Tried to use it,
	it really didn't work. Here's a patch.

diff -Naur twisted-web-0.3/debian/default twisted-web-0.3.1/debian/default
--- twisted-web-0.3/debian/default	2002-11-10 10:50:48.000000000 +0200
+++ twisted-web-0.3.1/debian/default	2003-07-09 14:09:58.000000000 +0300
@@ -1,5 +1,5 @@
 pidfile=/var/run/twisted-web.pid
 rundir=/var/lib/twisted-web/
-file=/etc/twisted-web
+file=/etc/twisted-web/twisted-web
 logfile=/var/log/twisted-web.log
 more_args=--no_save 
diff -Naur twisted-web-0.3/debian/init.d twisted-web-0.3.1/debian/init.d
--- twisted-web-0.3/debian/init.d	2002-11-10 10:50:02.000000000 +0200
+++ twisted-web-0.3.1/debian/init.d	2003-07-09 11:50:32.000000000 +0300
@@ -4,7 +4,7 @@
 
 pidfile=/var/run/twisted-web.pid
 rundir=/var/lib/twisted-web/
-file=/etc/twisted-web
+file=/etc/twisted-web/twisted-web
 logfile=/var/log/twisted-web.log
 more_args=--no_save
 
diff -Naur twisted-web-0.3/twisted-web twisted-web-0.3.1/twisted-web
--- twisted-web-0.3/twisted-web	2002-11-10 10:33:11.000000000 +0200
+++ twisted-web-0.3.1/twisted-web	2003-07-09 14:14:06.000000000 +0300
@@ -1,6 +1,6 @@
 from twisted.web import script, static, server, distrib, twcgi
-from twistedin.internet import app
-import pwd, grp
+from twisted.internet import app
+import pwd, grp, glob
 
 root = static.File('/var/www')
 root.processors = {
@@ -56,8 +56,8 @@
 site = server.Site(root, logPath=logPath)
 
 # Set user/group to run under
-uid = pwd.getpwnam('www-data')
-gid = grp.getgrnam('www-data')
+uid = pwd.getpwnam('www-data')[2]
+gid = grp.getgrnam('www-data')[2]
 
 
 application = app.Application("web", uid=uid, gid=gid)


-- 
:(){ :|:&};:




More information about the Twisted-Python mailing list