--- lib/PXElator/daemons.pm 2009/08/12 23:59:01 208 +++ lib/PXElator/daemons.pm 2009/08/16 00:03:30 225 @@ -10,7 +10,11 @@ use CouchDB; our $pids; -$pids = { httpd => $$, kvm => 'not started' } unless defined $pids; # keep pids on refresh +$pids = { + httpd => $$, + kvm => 'not started', + wireshark => 'not started', +} unless defined $pids; # keep pids on refresh sub DESTROY { warn "pids ",dump( $pids ); @@ -32,7 +36,9 @@ my $daemon = shift; my $pid = $pids->{$daemon}; - my $pid_path = "$server::conf/$daemon.pid"; + my $pid_path = "$daemon.pid"; + $pid_path =~ s{/}{-}g; + $pid_path = "$server::conf/$pid_path"; if ( ! $pid && -e $pid_path ) { my $p = read_file $pid_path;