Handle hostnames with upper-case letters
[webmin.git] / status / xinetd-monitor.pl
1 # xinetd-monitor.pl
2 # Monitor xinetd on this host
3
4 sub get_xinetd_status
5 {
6 local %xconfig = &foreign_config($_[1]);
7 return { 'up' => -1 } if (!-r $xconfig{'xinetd_conf'});
8 &foreign_require($_[1], "xinetd-lib.pl");
9 if (&xinetd::is_xinetd_running()) {
10         local @st = stat($xconfig{'pid_file'});
11         return { 'up' => 1,
12                  'desc' => @st ? &text('up_since', scalar(localtime($st[9])))
13                                : undef };
14         }
15 return { 'up' => 0 };
16 }
17
18 sub parse_xinetd_dialog
19 {
20 &depends_check($_[0], "xinetd");
21 }
22
23 1;
24