~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to erts/doc/src/erlsrv.xml

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2010-03-09 17:34:57 UTC
  • mfrom: (10.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100309173457-4yd6hlcb2osfhx31
Tags: 1:13.b.4-dfsg-3
Manpages in section 1 are needed even if only arch-dependent packages are
built. So, re-enabled them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
<comref>
5
5
  <header>
6
6
    <copyright>
7
 
      <year>1998</year><year>2009</year>
 
7
      <year>1998</year><year>2010</year>
8
8
      <holder>Ericsson AB. All Rights Reserved.</holder>
9
9
    </copyright>
10
10
    <legalnotice>
13
13
      compliance with the License. You should have received a copy of the
14
14
      Erlang Public License along with this software. If not, it can be
15
15
      retrieved online at http://www.erlang.org/.
16
 
    
 
16
 
17
17
      Software distributed under the License is distributed on an "AS IS"
18
18
      basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
19
19
      the License for the specific language governing rights and limitations
20
20
      under the License.
21
 
    
 
21
 
22
22
    </legalnotice>
23
23
 
24
24
    <title>erlsrv</title>
251
251
           necessarily the same as the interactive users. The service
252
252
           runs as the local administrator. All arguments should be given
253
253
           together in one string, use double quotes (") to give an
254
 
           argument string containing spaces and use quoted quotes (\\")
 
254
           argument string containing spaces and use quoted quotes (\")
255
255
           to give an quote within the argument string if
256
256
           necessary.</item>
257
257
           <tag>-i[nternalservicename] [&lt;internal name&gt;]</tag>
356
356
*/   
357
357
BOOL WINAPI service_aware_handler(DWORD ctrl){
358
358
    if(ctrl == CTRL_LOGOFF_EVENT)
359
 
\011return TRUE;
 
359
        return TRUE;
360
360
    return FALSE;
361
361
}
362
362
 
368
368
     */
369
369
    if(GetEnvironmentVariable("ERLSRV_SERVICE_NAME",buffer,
370
370
                              (DWORD) 2)){
371
 
\011/*
372
 
\011** Actually set the control handler
373
 
\011*/
374
 
\011SetConsoleCtrlHandler(&service_aware_handler, TRUE);
 
371
        /*
 
372
        ** Actually set the control handler
 
373
        */
 
374
        SetConsoleCtrlHandler(&service_aware_handler, TRUE);
375
375
    }
376
376
}    ]]></code>
377
377
  </section>
388
388
      the runtime system should not need to overwrite existing (and probably
389
389
      used) executables.</p>
390
390
    <p>To easily manipulate the Erlang services, put
391
 
      the <c><![CDATA[<erlang_root>\\erts-<version>\\bin]]></c> directory in
392
 
      the path instead of <c><![CDATA[<erlang_root>\\bin]]></c>. The erlsrv program
 
391
      the <c><![CDATA[<erlang_root>\erts-<version>\bin]]></c> directory in
 
392
      the path instead of <c><![CDATA[<erlang_root>\bin]]></c>. The erlsrv program
393
393
      can be found from inside Erlang by using the
394
394
      <c><![CDATA[os:find_executable/1]]></c> Erlang function.</p>
395
395
    <p>For release handling to work, use <c><![CDATA[start_erl]]></c> as the Erlang