--- http-replicator-2.0/http-replicator-2.0-orig/init 2004-05-01 11:26:43.000000000 -0500 +++ http-replicator-2.0/debian/init 2004-05-21 03:40:27.000000000 -0500 @@ -38,7 +38,7 @@ def start (): - print 'Starting HTTP proxy:', +# print 'Starting HTTP proxy:', if os.path.isfile(PID) and os.path.getsize(PID): # pidfile exists and is not empty print 'already running' return 1 # error @@ -50,6 +50,7 @@ os.chdir(DIR) # change into cache dir os.setsid() # remove process from the controlling terminal + os.setgid(pwd.getpwnam(USER)[3]) # change gid os.setuid(pwd.getpwnam(USER)[2]) # change uid os.umask(022) # set umask to -rw-r--r-- @@ -74,7 +75,7 @@ except: print 'error:', sys.exc_info()[1] else: - print 'http-replicator.' +# print 'http-replicator.' return 0 return 1 @@ -87,7 +88,7 @@ def stop (): - print 'Stopping HTTP proxy:', +# print 'Stopping HTTP proxy:', if not os.path.isfile(PID) or not os.path.getsize(PID): # pidfile does not exist or is empty print 'not running' return 0 # success @@ -101,7 +102,7 @@ except: print 'error:', sys.exc_info()[1] else: - print 'http-replicator.' +# print 'http-replicator.' return 0 # success return 1