[CalendarServer-changes] [8307] CalendarServer/trunk/calendarserver/tools/cmdline.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Nov 16 15:19:09 PST 2011
Revision: 8307
http://trac.macosforge.org/projects/calendarserver/changeset/8307
Author: wsanchez at apple.com
Date: 2011-11-16 15:19:08 -0800 (Wed, 16 Nov 2011)
Log Message:
-----------
Permissions errors not necessarily mean that you need to run as root. Just state what the error was.
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/cmdline.py
Modified: CalendarServer/trunk/calendarserver/tools/cmdline.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/cmdline.py 2011-11-16 23:00:32 UTC (rev 8306)
+++ CalendarServer/trunk/calendarserver/tools/cmdline.py 2011-11-16 23:19:08 UTC (rev 8307)
@@ -74,13 +74,8 @@
reactor.addSystemEventTrigger("during", "startup", service.startService)
reactor.addSystemEventTrigger("before", "shutdown", service.stopService)
- except ConfigurationError, e:
+ except (ConfigurationError, OSError), e:
sys.stderr.write("Error: %s\n" % (e,))
return
- except OSError: # Permission
- sys.stderr.write("Please run as root\n")
- return
-
reactor.run()
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111116/3a560695/attachment-0001.html>
More information about the calendarserver-changes
mailing list