Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 216042 - net-misc/vpnc init.d script doesn't catch start or stop failure
Summary: net-misc/vpnc init.d script doesn't catch start or stop failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Christian Faulhammer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-03 14:10 UTC by Tiziano Müller (RETIRED)
Modified: 2008-04-04 06:32 UTC (History)
1 user (show)

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


Attachments
vpnc.initd.patch (vpnc.patch,208 bytes, patch)
2008-04-03 14:11 UTC, Tiziano Müller (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziano Müller (RETIRED) gentoo-dev 2008-04-03 14:10:00 UTC
In case of unavailable network:

# /etc/init.d/vpnc.uzh start
 * Caching service dependencies ...                                                                                                                                                                               [ ok ]
 * Starting VPNC: uzh ...
/usr/sbin/vpnc: unknown host `vpnserver.uzh.ch'

 * start-stop-daemon: failed to start `/usr/sbin/vpnc'
Comment 1 Tiziano Müller (RETIRED) gentoo-dev 2008-04-03 14:11:16 UTC
Created attachment 148264 [details, diff]
vpnc.initd.patch

Fix.
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2008-04-03 16:38:37 UTC
(In reply to comment #1)
> Created an attachment (id=148264) [edit]
> vpnc.initd.patch
> 
> Fix.

 Thanks for your patch...shouldn't the second retval conditional be placed after the ssd call?

Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2008-04-03 22:15:59 UTC
Em, I did. But I forgot to pass the right parameters to the 'diff' call to get a unified diff, sorry :-/
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2008-04-04 06:32:49 UTC
Thanks, fixed in tree.