Handle hostnames with upper-case letters
[webmin.git] / status / inetd-monitor.pl
1 # inetd-monitor.pl
2 # Monitor inetd on this host
3
4 sub get_inetd_status
5 {
6 return { 'up' => -1 } if (!&foreign_check("proc"));
7 &foreign_require("proc", "proc-lib.pl");
8 local %iconfig = &foreign_config($_[1]);
9 return { 'up' => -1 } if (!-r $iconfig{'inetd_conf_file'});
10 return { 'up' => &find_named_process('inetd$') ? 1 : 0 };
11 }
12
13 sub parse_inetd_dialog
14 {
15 &depends_check($_[0], "inetd", "proc");
16 }
17
18 1;
19