]> code.delx.au - pymsnt/commitdiff
Added option to change UID.
authorjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Mon, 7 Nov 2005 19:50:54 +0000 (19:50 +0000)
committerjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Mon, 7 Nov 2005 19:50:54 +0000 (19:50 +0000)
git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@33 55fbd22a-6204-0410-b2f0-b6c764c7e90a

committer: jamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>

PyMSNt.tac

index c0381da782e30613345a5ef40a83a26f7bfed30a..465e8198d272ebd8d1a813c9488a36dc1e2a8aec 100644 (file)
@@ -4,6 +4,10 @@ PATH = "/usr/local/PyMSNt/"
 # Path to the configuration file
 CONFIG = "/usr/local/PyMSNt/config.xml"
 
+# User privileges to switch to if run as root
+UID=1
+GID=1
+
 ####
 # You shouldn't need to modify below this line
 ####
@@ -21,7 +25,7 @@ import config
 config.configFile = CONFIG
 import main
 from twisted.application import service
-application = service.Application("PyMSNt")
+application = service.Application("PyMSNt", uid=UID, gid=GID)
 service = main.App()
 service.c.setServiceParent(application)