source: branches/help/SERVERCNTRL/servercntrl.h

Last change on this file was 14509, checked in by westram, 9 years ago
  • fix for #492
    • call pt- and name-servers as daemons, i.e.
      • do not forward any kill signals
      • remove them from the joblist
      • redirect their output into a logfile
    • this is only done if arb is called from launcher
      • trigger is envar ARB_SERVER_LOG (contains the name of the logfile used for daemon output)
      • logfile gets tailed to console; tail is killed when launcher terminates ⇒ doesnt block
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1/* This file is generated by aisc_mkpt.
2 * Any changes you make here will be overwritten later!
3 */
4
5#ifndef SERVERCNTRL_H
6#define SERVERCNTRL_H
7
8
9/* servercntrl.cxx */
10
11#ifndef ARBDB_BASE_H
12#include <arbdb_base.h>
13#endif
14
15struct arb_params {
16    char *species_name;
17    char *extended_name;
18    char *alignment;
19    char *default_file;
20    char *field;
21    const char *field_default;
22
23    int  read_only;
24
25    char *job_server;
26    char *db_server;
27    char *mgr_server;
28    char *pt_server;
29
30    char *tcp;
31};
32
33enum SpawnMode {
34    WAIT_FOR_TERMINATION,
35    SPAWN_ASYNCHRONOUS,
36    SPAWN_DAEMONIZED,
37};
38
39char *createCallOnSocketHost(const char *host, const char *remotePrefix, const char *command, SpawnMode spawnmode, const char *logfile);
40GB_ERROR arb_start_server(const char *arb_tcp_env, int do_sleep);
41GB_ERROR arb_look_and_start_server(long magic_number, const char *arb_tcp_env);
42GB_ERROR arb_look_and_kill_server(int magic_number, const char *arb_tcp_env);
43void arb_print_server_params(void);
44arb_params *arb_trace_argv(int *argc, const char **argv);
45void free_arb_params(arb_params *params);
46
47#else
48#error servercntrl.h included twice
49#endif /* SERVERCNTRL_H */
Note: See TracBrowser for help on using the repository browser.