Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99138 - net-misc/openswan DO NOT USE EXIT IN INIT.D SCRIPTS
Summary: net-misc/openswan DO NOT USE EXIT IN INIT.D SCRIPTS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-15 11:10 UTC by Tomasz Orzechowski
Modified: 2006-11-22 11:11 UTC (History)
4 users (show)

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


Attachments
ipsec init.d script (ipsec,1.50 KB, application/octet-stream)
2006-05-10 13:41 UTC, Sérgio Luís
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Orzechowski 2005-07-15 11:10:11 UTC
when starting ipsec (openswan) with an incorrect config file:  
  
# /etc/init.d/ipsec start  
 * Starting IPSEC ... ...  
ipsec_setup: (/etc/ipsec/ipsec.conf, line 41) section header "xxx=yyy"  
has wrong number of fields (1) -- `start' aborted  
 * DO NOT USE EXIT IN INIT.D SCRIPTS  
 * This IS a bug, please fix your broken init.d  
  

Reproducible: Always
Steps to Reproduce:
1.emerge openswan 
2./etc/init.d/ipsec start 
3.
Comment 1 Ervin Peters 2006-02-26 12:51:09 UTC
Still alive:

-------
balu ipsec # /etc/init.d/ipsec start
 * Caching service dependencies ...                                       [ ok ] * Starting IPSEC ... ...
ipsec_setup: (/etc/ipsec/ipsec.conf, line 39) parameter is not within a section -- `start' aborted
 * DO NOT USE EXIT IN INIT.D SCRIPTS
 * This IS a bug, please fix your broken init.d
balu ipsec # emerge -pv openswan

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-misc/openswan-2.4.4  0 kB

Total size of downloads: 0 kB
-----------

ervin
Comment 2 Sérgio Luís 2006-05-10 13:41:28 UTC
Created attachment 86564 [details]
ipsec init.d script

Try with this /etc/init.d/ipsec

or just edit yours and replace exit with return
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-08-01 09:44:31 UTC
C'mon, still broken after one year? How hard is it to fix exactly one line in init script?
Comment 4 Charlie Shepherd (RETIRED) gentoo-dev 2006-11-22 11:11:18 UTC
Thanks, fixed in CVS
Comment 5 Charlie Shepherd (RETIRED) gentoo-dev 2006-11-22 11:11:55 UTC
Like I said, fixed