service => 'amindexd',
emulate => 'amandad',
auth => 'bsdtcp',
+ auth_peer => 'localhost',
process_done => $process_done);
# or
$service = Installcheck::ClientService->new(
service is invoked. The C<args> and C<auth> parameters are described above.
The C<process_done> parameter gives a sub which is called with the service's
wait status when the service exits and all of its file descriptors have been
-drained.
+drained. The C<auth_peer> parameter gives the value for
+C<$AMANDA_AUTHENTICATED_PEER> when emulating amandad.
=head2 Killing Subprocess
process_done => $params{'process_done'},
auth => $params{'auth'} || 'bsdtcp',
args => $params{'args'} || [],
+ auth_peer => $params{'auth_peer'},
# all hashes keyed by stream name
stream_fds => {},
POSIX::close($in_c);
}
+ delete $ENV{'AMANDA_AUTHENTICATED_PEER'};
+ $ENV{'AMANDA_AUTHENTICATED_PEER'} = $self->{'auth_peer'} if $self->{'auth_peer'};
+
# finally, execute!
# braces avoid warning
{ exec { $service } $service, 'amandad', $self->{'auth'}; }