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}
(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.
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(-)