88{
89
90
91
92
93 string rbufin = string(m_conf->getconf("system", "unitname")) + ":" +
94 string(m_conf->getconf("processor", "ringbufin"));
95
96 string rbufout = string(m_conf->getconf("system", "unitname")) + ":" +
97 string(m_conf->getconf("processor", "ringbufout"));
98
99 string shmname = string(m_conf->getconf("system", "unitname")) + ":" +
100 string(m_nodename);
101
102
103 char* hrecv = m_conf->getconf("processor", "historecv", "script");
104 char* hport = m_conf->getconf("processor", "historecv", "port");
105 char* mapfile = m_conf->getconf("processor", "historecv", "mapfile");
106 m_pid_hrecv = m_proc->
Execute(hrecv, hport, mapfile);
107
108 sleep(5);
109
110
111 char* hrelay = m_conf->getconf("processor", "historelay", "script");
112 char* dqmdest = m_conf->getconf("dqmserver", "host");
113 char* dqmport = m_conf->getconf("dqmserver", "port");
114 char* interval = m_conf->getconf("processor", "historelay", "interval");
115 m_pid_hrelay = m_proc->
Execute(hrelay, mapfile, dqmdest, dqmport, interval);
116
117
118
119
120
121
122
123
124
125
126
127
128 char* receiver = m_conf->getconf("processor", "receiver", "script");
129 char* srchost = m_conf->getconf("distributor", "host");
130
131 int portbase = m_conf->getconfi("distributor", "sender", "portbase");
132
133 int rport;
134 sscanf(&m_nodename[strlen(m_nodename) - 2], "%d", &rport);
135 rport += portbase;
136 char portchar[256];
137 sprintf(portchar, "%d", rport);
138 m_pid_receiver = m_proc->
Execute(receiver, (
char*)rbufin.c_str(), srchost, portchar, (
char*)shmname.c_str(), (
char*)
"0");
139
140
141 char* evs = m_conf->getconf("processor", "eventserver", "script");
142 char* evsport = m_conf->getconf("processor", "eventserver", "port");
143 m_pid_evs = m_proc->
Execute(evs, (
char*)rbufout.c_str(), evsport);
144
145 printf("Configure : done\n");
146 fflush(stdout);
147 return 0;
148
149}
int Execute(char *script, int nargs, char **args)