1 # portsentry-monitor.pl
2 # Monitor the portsentry daemon
4 # Check the PID file to see if portsentry is running
5 sub get_portsentry_status
7 return { 'up' => -1 } if (!&foreign_check("sentry"));
8 local %sconfig = &foreign_config("sentry");
9 &has_command($sconfig{'portsentry'}) || return { 'up' => -1 };
10 &foreign_require("sentry", "sentry-lib.pl");
11 local @pids = &sentry::get_portsentry_pids();
20 sub parse_portsentry_dialog
22 &depends_check($_[0], "sentry");