source: epicsdf/doc/build/html/host/index.html @ 1046

Last change on this file since 1046 was 1046, checked in by jemian, 10 years ago

refs #12, provides the publishing tool and changed the URL to point to the new location

  • Property svn:executable set to *
  • Property svn:mime-type set to text/html
File size: 6.6 KB
Line 
1
2
3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
6
7<html xmlns="http://www.w3.org/1999/xhtml">
8  <head>
9    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10   
11    <title>Host computer support documentation &mdash; epicsdf 1.0 documentation</title>
12   
13    <link rel="stylesheet" href="../_static/sphinxdoc.css" type="text/css" />
14    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
15   
16    <script type="text/javascript">
17      var DOCUMENTATION_OPTIONS = {
18        URL_ROOT:    '../',
19        VERSION:     '1.0',
20        COLLAPSE_INDEX: false,
21        FILE_SUFFIX: '.html',
22        HAS_SOURCE:  true
23      };
24    </script>
25    <script type="text/javascript" src="../_static/jquery.js"></script>
26    <script type="text/javascript" src="../_static/underscore.js"></script>
27    <script type="text/javascript" src="../_static/doctools.js"></script>
28    <link rel="top" title="epicsdf 1.0 documentation" href="../index.html" />
29    <link rel="up" title="Contents" href="../contents.html" />
30    <link rel="next" title="Source code documentation" href="../src/index.html" />
31    <link rel="prev" title="EPICS IOC support documentation" href="../epics/index.html" /> 
32  </head>
33  <body>
34    <div class="related">
35      <h3>Navigation</h3>
36      <ul>
37        <li class="right" style="margin-right: 10px">
38          <a href="../genindex.html" title="General Index"
39             accesskey="I">index</a></li>
40        <li class="right" >
41          <a href="../py-modindex.html" title="Python Module Index"
42             >modules</a> |</li>
43        <li class="right" >
44          <a href="../src/index.html" title="Source code documentation"
45             accesskey="N">next</a> |</li>
46        <li class="right" >
47          <a href="../epics/index.html" title="EPICS IOC support documentation"
48             accesskey="P">previous</a> |</li>
49        <li><a href="../index.html">epicsdf 1.0 documentation</a> &raquo;</li>
50          <li><a href="../contents.html" accesskey="U">Contents</a> &raquo;</li> 
51      </ul>
52    </div>
53      <div class="sphinxsidebar">
54        <div class="sphinxsidebarwrapper">
55  <h4>Previous topic</h4>
56  <p class="topless"><a href="../epics/index.html"
57                        title="previous chapter">EPICS IOC support documentation</a></p>
58  <h4>Next topic</h4>
59  <p class="topless"><a href="../src/index.html"
60                        title="next chapter">Source code documentation</a></p>
61  <h3>This Page</h3>
62  <ul class="this-page-menu">
63    <li><a href="../_sources/host/index.txt"
64           rel="nofollow">Show Source</a></li>
65  </ul>
66<div id="searchbox" style="display: none">
67  <h3>Quick search</h3>
68    <form class="search" action="../search.html" method="get">
69      <input type="text" name="q" />
70      <input type="submit" value="Go" />
71      <input type="hidden" name="check_keywords" value="yes" />
72      <input type="hidden" name="area" value="default" />
73    </form>
74    <p class="searchtip" style="font-size: 90%">
75    Enter search terms or a module, class or function name.
76    </p>
77</div>
78<script type="text/javascript">$('#searchbox').show(0);</script>
79        </div>
80      </div>
81
82    <div class="document">
83      <div class="documentwrapper">
84        <div class="bodywrapper">
85          <div class="body">
86           
87  <div class="section" id="host-computer-support-documentation">
88<h1>Host computer support documentation<a class="headerlink" href="#host-computer-support-documentation" title="Permalink to this headline">¶</a></h1>
89<p>The host computer support package consists of a bash shell script and
90a Makefile, both located in the directory: &lt;epicsdf&gt;/shell/</p>
91<p>Most important is the bash shell script: epicsdf.sh.
92It is used to start, stop, restart, and check that the Python job is running.
93The shell logs all its output (and that of the Python code)
94into the file epicsdf.log in the same directory.
95The process identifier (PID) is recorded in the file epicsdf.pid.</p>
96<p>There is also a Makefile in the same directory for convenience.</p>
97<blockquote>
98<div><table border="1" class="docutils">
99<colgroup>
100<col width="24%" />
101<col width="34%" />
102<col width="42%" />
103</colgroup>
104<thead valign="bottom">
105<tr class="row-odd"><th class="head">Makefile</th>
106<th class="head">bash shell</th>
107<th class="head">description</th>
108</tr>
109</thead>
110<tbody valign="top">
111<tr class="row-even"><td>make</td>
112<td>epicsdf.sh checkup</td>
113<td>make sure the python job
114is running and restart
115it if is not</td>
116</tr>
117<tr class="row-odd"><td>make start</td>
118<td>epicsdf.sh start</td>
119<td>start the python job</td>
120</tr>
121<tr class="row-even"><td>make stop</td>
122<td>epicsdf.sh stop</td>
123<td>stop the python job</td>
124</tr>
125<tr class="row-odd"><td>make restart</td>
126<td>epicsdf.sh restart</td>
127<td>restart the python job</td>
128</tr>
129</tbody>
130</table>
131</div></blockquote>
132<p>To make sure the Python script is running, enter these commands
133as a cron task (which run a check every five minutes):</p>
134<div class="highlight-python"><pre># cron task
135#  watch some local disk partition and report it to EPICS, send emails if space runs low
136   */5 * * * * /path/to/epicsdf/shell/epicsdf.sh start</pre>
137</div>
138<table class="docutils field-list" frame="void" rules="none">
139<col class="field-name" />
140<col class="field-body" />
141<tbody valign="top">
142<tr class="field-odd field"><th class="field-name">note:</th><td class="field-body">To edit a cron task, you need to set an environment variable for an
143editor such as EDITOR=nano and then type &#8220;crontab -e&#8221; on the command
144line.  Paste in the line above, save the edits, and quit the editor.</td>
145</tr>
146</tbody>
147</table>
148</div>
149
150
151          </div>
152        </div>
153      </div>
154      <div class="clearer"></div>
155    </div>
156    <div class="related">
157      <h3>Navigation</h3>
158      <ul>
159        <li class="right" style="margin-right: 10px">
160          <a href="../genindex.html" title="General Index"
161             >index</a></li>
162        <li class="right" >
163          <a href="../py-modindex.html" title="Python Module Index"
164             >modules</a> |</li>
165        <li class="right" >
166          <a href="../src/index.html" title="Source code documentation"
167             >next</a> |</li>
168        <li class="right" >
169          <a href="../epics/index.html" title="EPICS IOC support documentation"
170             >previous</a> |</li>
171        <li><a href="../index.html">epicsdf 1.0 documentation</a> &raquo;</li>
172          <li><a href="../contents.html" >Contents</a> &raquo;</li> 
173      </ul>
174    </div>
175    <div class="footer">
176        &copy; Copyright 2011, Pete Jemian.
177      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
178    </div>
179  </body>
180</html>
Note: See TracBrowser for help on using the repository browser.