Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105272 - net-misc/openswan - wrong args on ipsec restart by _plutorun script.
Summary: net-misc/openswan - wrong args on ipsec restart by _plutorun script.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-08 09:17 UTC by Momchy
Modified: 2006-12-07 09:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Momchy 2005-09-08 09:17:59 UTC
when ipsec need to be automatically restarted by _plutorun
after any error, the call /etc/init.d/ipsec script didn't work
because it's called with wrong args :  setup _autorestart.

So, ipsec just stop working.

thanks.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
Sep  8 15:55:03 EL38SR015 ipsec__plutorun: /usr/lib/ipsec/_plutorun: line 1:
18692 Aborted                 /usr/libexec/ipsec/pluto --nofork --secretsfile
/etc/ipsec/ipsec.secrets --policygroupsdir /etc/ipsec/ipsec.d/policies
--debug-none --uniqueids --nat_traversal --virtual_private
%v4:10.0.0.0/8,%v4:172.16.0.0/12,%v4:192.168.0.0/16
Sep  8 15:55:03 EL38SR015 ipsec__plutorun: !pluto failure!:  exited with error
status 134 (signal 6)
Sep  8 15:55:03 EL38SR015 ipsec__plutorun: restarting IPsec after pause...
Sep  8 15:55:13 EL38SR015 rc-scripts: ERROR:  wrong args. (  _autorestart /
_autorestart )
Sep  8 15:55:13 EL38SR015 rc-scripts: Usage: ipsec { start|stop|restart }
Sep  8 15:55:13 EL38SR015 rc-scripts:        ipsec without arguments for full help

Expected Results:  
ipsec restarting correctly.

Section in script _plutorun.

    258                 echo "!pluto failure!:  exited with error status $st"
    259                 echo "restarting IPsec after pause..."
    260                 (
    261                         sleep 10
    262                         ipsec setup _autorestart
    263                         
    264                 ) </dev/null >/dev/null 2>&1 &  

for now, I call "/etc/init.d/ipsec restart"
in this script instead of "ipsec setup _autorestart".
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2006-12-06 12:10:31 UTC
I've assumed the maintainer position. 
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2006-12-07 09:37:05 UTC
It seems it has been fixed in openswan-2.4.4. In this version, "ipsec setup _autorestart" is a valid command line.