server/serverctl.py
changeset 6782 b5d6f5391695
parent 6724 24bf6f181d0e
parent 6779 accf5978a440
child 6882 b5e34836f84e
--- a/server/serverctl.py	Tue Jan 04 14:11:54 2011 +0100
+++ b/server/serverctl.py	Wed Jan 05 17:50:21 2011 +0100
@@ -237,6 +237,7 @@
         command.append('--loglevel %s' % config['log-threshold'].lower())
         command.append(config.appid)
         os.system(' '.join(command))
+        return 1
 
 
 class RepositoryStopHandler(CommandHandler):
@@ -593,7 +594,7 @@
         # go ! (don't daemonize in debug mode)
         if not os.path.exists(piddir):
             os.makedirs(piddir)
-        if not debug and daemonize(pidfile):
+        if not debug and daemonize(pidfile, umask=config['umask']):
             return
         uid = config['uid']
         if uid is not None: