I have found the issue.
/usr/sbin/rcamavis was linked wrong. when the service tried to stop and start it looped out of control.
I have tested the install 3 more times and found this issue to be on one server only.
This issue was most likely caused by a admin error before ispcp was installed.
(06-08-2011 07:19 PM)kilburn Wrote: This is the code that is causing your problems:
Code:
97 sub serv_mngr_engine {
98
99 push_el(\@main::el, 'serv_mngr_engine()', 'Starting...');
100
101 my $cmd;
102
103 if ($main::changed_mail_cnt > 0 || $main::changed_dmn_cnt > 0 ||
104 $main::changed_sub_cnt > 0) {
105
106 if ($main::cfg{'CMD_AUTHD'} ne 'no') {
107 $cmd = $main::cfg{'CMD_AUTHD'};
108 sys_command_rs("$cmd stop");
109 }
110
111 if ($main::cfg{'CMD_AMAVIS'} ne 'no') {
112 $cmd = $main::cfg{'CMD_AMAVIS'};
113 sys_command_rs("$cmd stop");
114 }
115
116 if ($main::cfg{'CMD_IMAP'} ne 'no') {
117 $cmd = $main::cfg{'CMD_IMAP'};
118 sys_command_rs("$cmd stop");
119 }
120
121 if ($main::cfg{'CMD_POP'} ne 'no') {
122 $cmd = $main::cfg{'CMD_POP'};
123 sys_command_rs("$cmd stop");
124 }
125 }
126
127 if ($main::changed_dmn_cnt > 0 || $main::changed_sub_cnt > 0 ||
128 $main::changed_als_cnt > 0 || $main::changed_alssub_cnt > 0) {
129
130 # TODO move to rndc
131 if ($main::cfg{'CMD_NAMED'} ne 'no') {
132 $cmd = $main::cfg{'CMD_NAMED'};
133 sys_command_rs("$cmd restart");
134 }
135 }
136
137 if ($main::changed_sub_cnt > 0 || $main::changed_als_cnt > 0 ||
138 $main::changed_alssub_cnt > 0) {
139
140 if ($main::cfg{'CMD_FTPD'} ne 'no') {
141 $cmd = $main::cfg{'CMD_FTPD'};
142 sys_command_rs("$cmd restart");
143 }
144 }
145
146 if ($main::changed_mail_cnt > 0 || $main::changed_dmn_cnt > 0 ||
147 $main::changed_sub_cnt > 0 || $main::changed_als_cnt > 0) {
148
149 # Ensure that postfix is running - Do nothing if running
150 if ($main::cfg{'CMD_MTA'} ne 'no') {
151 $cmd = $main::cfg{'CMD_MTA'};
152 sys_command_rs("$cmd start");
153 }
154
155 if ($main::cfg{'CMD_AUTHD'} ne 'no') {
156 $cmd = $main::cfg{'CMD_AUTHD'};
157 sys_command_rs("$cmd start");
158 }
159
160 if ($main::cfg{'CMD_AMAVIS'} ne 'no') {
161 $cmd = $main::cfg{'CMD_AMAVIS'};
162 sys_command_rs("$cmd start");
163 }
164
165 if ($main::cfg{'CMD_IMAP'} ne 'no') {
166 $cmd = $main::cfg{'CMD_IMAP'};
167 sys_command_rs("$cmd start");
168 }
169
170 if ($main::cfg{'CMD_POP'} ne 'no') {
171 $cmd = $main::cfg{'CMD_POP'};
172 sys_command_rs("$cmd start");
173 }
174 }
175
176 if ($main::changed_dmn_cnt > 0 || $main::changed_sub_cnt > 0 ||
177 $main::changed_als_cnt > 0 || $main::changed_alssub_cnt > 0) {
178
179 if ($main::cfg{'CMD_HTTPD'} ne 'no') {
180 my $rs = restart_httpd();
181 return $rs if ($rs != 0);
182 }
183 }
184
185 push_el(\@main::el, 'serv_mngr_engine()', 'Ending...');
186
187 0;
188 }
Hence, you can try to reproduce the function manually in order to determine where it is going nuts. Basically, you know that there are some changed mail accounts, so you start by "simulating" this bit:
Code:
106 if ($main::cfg{'CMD_AUTHD'} ne 'no') {
107 $cmd = $main::cfg{'CMD_AUTHD'};
108 sys_command_rs("$cmd stop");
109 }
Hence, you first have to obtain the CMD_AUTH config. variable and run the corresponding script with a "stop" argument. This can be done in a bash shell by issuing the command (you can also do it by parts):
Code:
`grep 'CMD_AUTH' /etc/ispcp/ispcp.conf | cut -d'=' -f2` stop
At some point the process should hang up (issuing those infamous "yes" stuff), so maybe we can work on from there....
Thanks for your help!!! pointed me right to the issue/ error.