Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 736332 - net-misc/stunnel-5.56-r1: init script successful stop() leaves drop-in process running
Summary: net-misc/stunnel-5.56-r1: init script successful stop() leaves drop-in proces...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-07 23:05 UTC by Steve Arnold
Modified: 2020-08-09 19:16 UTC (History)
0 users

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 Steve Arnold archtester gentoo-dev 2020-08-07 23:05:56 UTC
I never did find info on using the "drop-in" config file; the only way I could get it to "work" is more-or-less like the openvpn init script, ie:

* drop (working) foo.conf file in /etc/stunnel/
* symlink init.d/stunnel.foo to init.d/stunnel
* /etc/init.d/stunnel.foo start

Start works, foo configured tunnel works, stop appears to work, but leaves the main process running.

Fix:

Add the --exec arg to the args in stop():

* start-stop-daemon --stop --quiet --exec /usr/bin/stunnel --pidfile ${PIDFILE}
Comment 1 Anthony Basile gentoo-dev 2020-08-08 15:54:31 UTC
(In reply to Steve Arnold from comment #0)
> I never did find info on using the "drop-in" config file; the only way I
> could get it to "work" is more-or-less like the openvpn init script, ie:
> 
> * drop (working) foo.conf file in /etc/stunnel/
> * symlink init.d/stunnel.foo to init.d/stunnel
> * /etc/init.d/stunnel.foo start
> 
> Start works, foo configured tunnel works, stop appears to work, but leaves
> the main process running.
> 
> Fix:
> 
> Add the --exec arg to the args in stop():
> 
> * start-stop-daemon --stop --quiet --exec /usr/bin/stunnel --pidfile
> ${PIDFILE}

easy enough, feel free to add it.
Comment 2 Larry the Git Cow gentoo-dev 2020-08-09 19:16:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ad773667769976017f40ad88c556c50a7a42158

commit 4ad773667769976017f40ad88c556c50a7a42158
Author:     Stephen Arnold <nerdboy@gentoo.org>
AuthorDate: 2020-08-09 19:15:21 +0000
Commit:     Stephen Arnold <nerdboy@gentoo.org>
CommitDate: 2020-08-09 19:15:21 +0000

    net-misc/stunnel: update r1 init script, add ~arm64 to 5.56-r1
    
    * adds --exec to stop args and einfo for symlink
    
    Closes: https://bugs.gentoo.org/736332
    Package-Manager: Portage-2.3.67, Repoman-2.3.17
    Signed-off-by: Steve Arnold <nerdboy@gentoo.org>

 net-misc/stunnel/files/stunnel-r1       | 5 +++--
 net-misc/stunnel/stunnel-5.56-r1.ebuild | 6 ++++--
 2 files changed, 7 insertions(+), 4 deletions(-)