Another query.

I am calling ipsec via a perl routine as below. rereadsecrets seems to
run ok, but auto --replace throws an error :

ipsec replace failed( error code 1280)

However, it seems to have completed correctly so my guess is this is
actually an 'OK' ? Is there any information on status/output codes ?

B. Rgds
John

# This seems to be OK and returns a '0' :

print " ReReading Secrets \n ";
my $reread = qx(/usr/sbin/ipsec auto --rereadsecrets);

die(" Unable launch ipsec reread secrets : $! \n ")
  if not defined $reread;
die(" ipsec reread secrets failed( error code $?) \n ") if $?;


# This throws an error code 1280

print " Restarting connection $connectionName\n ";
my $restart = qx(/usr/sbin/ipsec auto --replace $connectionName);

die(" Unable to launch ipsec replace : $! \n ")
  if not defined $restart;
die(" ipsec replace failed( error code $?) \n ") if $?;

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Swan mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan

Reply via email to