2004-02-09 05:11:05 +00:00
|
|
|
<?php
|
2004-12-30 03:33:53 +00:00
|
|
|
require_once("docutil.php");
|
|
|
|
page_head("Project control");
|
2004-02-09 05:11:05 +00:00
|
|
|
echo "
|
2006-07-17 16:38:53 +00:00
|
|
|
<h2>Project control scripts</h2>
|
|
|
|
|
|
|
|
The following Python scripts control a project:
|
|
|
|
";
|
|
|
|
list_start();
|
|
|
|
list_item("bin/start",
|
|
|
|
"Start the project: start all daemons,
|
|
|
|
and remove the stop_sched and stop_daemon files (see below)."
|
|
|
|
);
|
|
|
|
list_item("bin/stop",
|
|
|
|
"Stop the project (create the stop_sched and stop_daemon files)"
|
|
|
|
);
|
|
|
|
list_item("bin/start --cron",
|
|
|
|
"If the project is started, perform all periodic tasks that are past due,
|
|
|
|
and start any daemons that aren't running.
|
|
|
|
Otherwise do nothing."
|
|
|
|
);
|
|
|
|
list_item("bin/status",
|
|
|
|
"Show whether the project is stopped.
|
|
|
|
Show the status of all daemons.
|
|
|
|
Show the status of all periodic tasks
|
|
|
|
(e.g., when they were last executed)."
|
|
|
|
);
|
|
|
|
list_end();
|
|
|
|
echo "
|
2006-03-21 06:52:30 +00:00
|
|
|
<h2>Trigger files</h2>
|
2004-12-30 03:33:53 +00:00
|
|
|
<p>
|
2006-03-21 06:52:30 +00:00
|
|
|
The following files (in the project root directory)
|
|
|
|
can be used to turn off various parts of a project.
|
2006-07-17 16:38:53 +00:00
|
|
|
";
|
|
|
|
list_start();
|
|
|
|
list_item("stop_sched",
|
|
|
|
"Have the scheduler return 'project down' messages."
|
|
|
|
);
|
|
|
|
list_item("stop_daemons",
|
|
|
|
"Tell all daemon process to exit."
|
|
|
|
);
|
|
|
|
list_item("stop_web",
|
|
|
|
"Have the web site return 'project down' messages
|
|
|
|
for all functions that require database access."
|
|
|
|
);
|
|
|
|
list_item("stop_upload",
|
|
|
|
"Have the file upload handler return transient error messages to clients
|
|
|
|
(they'll back off and retry later)."
|
|
|
|
);
|
|
|
|
list_end();
|
|
|
|
echo "
|
2004-12-30 03:33:53 +00:00
|
|
|
<p>
|
2006-03-21 06:52:30 +00:00
|
|
|
The presence of a file triggers the function.
|
|
|
|
For example, to turn off data-driven web pages, type
|
|
|
|
<pre>
|
|
|
|
touch stop_web
|
|
|
|
</pre>
|
2006-07-17 16:38:53 +00:00
|
|
|
and to turn them back on, type
|
2006-03-21 06:52:30 +00:00
|
|
|
<pre>
|
|
|
|
rm stop_web
|
|
|
|
</pre>
|
|
|
|
|
2004-12-30 03:33:53 +00:00
|
|
|
<p>
|
2006-07-17 16:38:53 +00:00
|
|
|
If the first three files are all present, no database access will occur.
|
2006-03-21 06:52:30 +00:00
|
|
|
You should do this during most maintenance functions
|
|
|
|
(such as upgrading software).
|
2004-02-09 05:11:05 +00:00
|
|
|
";
|
2006-07-17 16:38:53 +00:00
|
|
|
|
2004-12-30 03:33:53 +00:00
|
|
|
page_tail();
|
2003-09-04 06:17:15 +00:00
|
|
|
?>
|