Handle hostnames with upper-case letters
[webmin.git] / status / postfix-monitor.pl
1 # postfix-monitor.pl
2 # Monitor the postfix server on this host
3
4 # Check to see if postfix is running
5 sub get_postfix_status
6 {
7 return { 'up' => -1 } if (!&foreign_check($_[1]));
8 &foreign_require($_[1], "postfix-lib.pl");
9 local %pconfig = &foreign_config($_[1]);
10 return { 'up' => -1 } if (!-r $pconfig{'postfix_control_command'});
11 if (&foreign_call($_[1], "is_postfix_running")) {
12         return { 'up' => 1 };
13         }
14 else {
15         return { 'up' => 0 };
16         }
17 }
18
19 sub parse_postfix_dialog
20 {
21 &depends_check($_[0], "postfix");
22 }
23
24 1;
25