2 # Functions for parsing this module's logs
6 # parse_webmin_log(user, script, action, type, object, ¶ms)
7 # Converts logged information from this module into human-readable form
10 local ($user, $script, $action, $type, $object, $p, $long) = @_;
11 if ($action eq 'run') {
12 return &text('log_run', "<tt>".&html_escape($p->{'cmd'})."</tt>");
14 elsif ($action eq 'kill') {
16 @pids = $p->{'pid'} ? ( $p->{'pid'} ) : split(/\s+/, $p->{'pidlist'});
18 for($i=0; $i<@pids; $i++) {
19 $desc .= "<i>".$p->{"args$i"}.
20 "</i> (PID $pids[$i])<br>";
22 return &text(@pids == 1 ? 'log_kill_l' : 'log_kills_l',
23 "<tt>$p->{'signal'}</tt>", $desc);
27 return &text('log_kill', "<tt>$p->{'signal'}</tt>",
31 return &text('log_kills', "<tt>$p->{'signal'}</tt>",
36 elsif ($action eq 'renice') {
37 return &text('log_renice', $p->{'nice'}, $p->{'pid'});