[CalendarServer-changes] [4600] CalendarServer/branches/egg-info-351
source_changes at macosforge.org
source_changes at macosforge.org
Mon Oct 19 12:47:06 PDT 2009
Revision: 4600
http://trac.macosforge.org/projects/calendarserver/changeset/4600
Author: glyph at apple.com
Date: 2009-10-19 12:47:03 -0700 (Mon, 19 Oct 2009)
Log Message:
-----------
make a library to start moving run functions to
Modified Paths:
--------------
CalendarServer/branches/egg-info-351/run
Added Paths:
-----------
CalendarServer/branches/egg-info-351/support/runlib.sh
Modified: CalendarServer/branches/egg-info-351/run
===================================================================
--- CalendarServer/branches/egg-info-351/run 2009-10-19 19:19:04 UTC (rev 4599)
+++ CalendarServer/branches/egg-info-351/run 2009-10-19 19:47:03 UTC (rev 4600)
@@ -34,6 +34,8 @@
wd="$(cd "$(dirname "$0")" && pwd)";
+source support/runlib.sh
+
##
# Command line
##
@@ -61,36 +63,6 @@
cache_deps="${CALENDARSERVER_CACHE_DEPS}";
fi;
-usage ()
-{
- program="$(basename "$0")";
-
- if [ "${1--}" != "-" ]; then echo "$@"; echo; fi;
-
- echo "Usage: ${program} [-hvgsfnpdkrR] [-K key] [-iI dst] [-t type] [-S statsdirectory] [-P plugin]";
- echo "Options:";
- echo " -h Print this help and exit";
- echo " -v Be verbose";
- echo " -g Get dependencies only; don't run setup or run the server.";
- echo " -s Run setup only; don't run server";
- echo " -f Force setup to run";
- echo " -n Do not run setup";
- echo " -p Print PYTHONPATH value for server and exit";
- echo " -d Run caldavd as a daemon";
- echo " -k Stop caldavd";
- echo " -r Restart caldavd";
- echo " -K Print value of configuration key and exit";
- echo " -i Perform a system install into dst; implies -s";
- echo " -I Perform a home install into dst; implies -s";
- echo " -t Select the server process type (Master, Slave or Combined) [${service_type}]";
- echo " -S Write a pstats object for each process to the given directory when the server is stopped.";
- echo " -P Select the twistd plugin name [${plugin_name}]";
- echo " -R Twisted Reactor plugin to execute [${reactor}]";
-
- if [ "${1-}" == "-" ]; then return 0; fi;
- exit 64;
-}
-
while getopts 'hvgsfnpdkrK:i:I:t:S:P:R:' option; do
case "$option" in
'?') usage; ;;
Added: CalendarServer/branches/egg-info-351/support/runlib.sh
===================================================================
--- CalendarServer/branches/egg-info-351/support/runlib.sh (rev 0)
+++ CalendarServer/branches/egg-info-351/support/runlib.sh 2009-10-19 19:47:03 UTC (rev 4600)
@@ -0,0 +1,33 @@
+
+usage ()
+{
+ program="$(basename "$0")";
+
+ if [ "${1--}" != "-" ]; then echo "$@"; echo; fi;
+
+ echo "Usage: ${program} [-hvgsfnpdkrR] [-K key] [-iI dst] [-t type] [-S statsdirectory] [-P plugin]";
+ echo "Options:";
+ echo " -h Print this help and exit";
+ echo " -v Be verbose";
+ echo " -g Get dependencies only; don't run setup or run the server.";
+ echo " -s Run setup only; don't run server";
+ echo " -f Force setup to run";
+ echo " -n Do not run setup";
+ echo " -p Print PYTHONPATH value for server and exit";
+ echo " -d Run caldavd as a daemon";
+ echo " -k Stop caldavd";
+ echo " -r Restart caldavd";
+ echo " -K Print value of configuration key and exit";
+ echo " -i Perform a system install into dst; implies -s";
+ echo " -I Perform a home install into dst; implies -s";
+ echo " -t Select the server process type (Master, Slave or Combined) [${service_type}]";
+ echo " -S Write a pstats object for each process to the given directory when the server is stopped.";
+ echo " -P Select the twistd plugin name [${plugin_name}]";
+ echo " -R Twisted Reactor plugin to execute [${reactor}]";
+
+ if [ "${1-}" == "-" ]
+ then
+ return 0
+ fi
+ exit 64
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20091019/62fd6b9a/attachment-0001.html>
More information about the calendarserver-changes
mailing list