366 |
printf(" %-18s = %s\n", "Use ssl encryption", Run.httpdssl?"True":"False"); |
printf(" %-18s = %s\n", "Use ssl encryption", Run.httpdssl?"True":"False"); |
367 |
|
|
368 |
if (Run.httpdssl) { |
if (Run.httpdssl) { |
369 |
|
|
370 |
printf(" %-18s = %s\n", "PEM key/cert file", Run.httpsslpem); |
printf(" %-18s = %s\n", "PEM key/cert file", Run.httpsslpem); |
371 |
|
|
372 |
|
if (Run.httpsslclientpem!=NULL) { |
373 |
|
printf(" %-18s = %s\n", "Client cert file", Run.httpsslclientpem); |
374 |
|
} else { |
375 |
|
printf(" %-18s = %s\n", "Client cert file", "None"); |
376 |
|
} |
377 |
|
|
378 |
|
printf(" %-18s = %s\n", "Allow self certs", |
379 |
|
Run.allowselfcert?"True":"False"); |
380 |
|
|
381 |
} |
} |
382 |
|
|
383 |
printf(" %-18s = %s\n", "httpd auth. style", |
printf(" %-18s = %s\n", "httpd auth. style", |
636 |
int is_process_running(Process_T p) { |
int is_process_running(Process_T p) { |
637 |
|
|
638 |
pid_t pid; |
pid_t pid; |
639 |
|
int kill_return=0; |
640 |
|
|
641 |
errno= 0; |
errno= 0; |
642 |
|
|
643 |
if ((pid= get_pid(p->pidfile))) { |
if ((pid= get_pid(p->pidfile))) { |
644 |
|
|
645 |
if(kill(pid, 0) == 0 || errno == EPERM) |
if((kill_return=getpgid(pid)) > 0 || errno == EPERM) |
646 |
|
|
647 |
return pid; |
return pid; |
648 |
|
|