Hello, `--` is missing before command args in initd. Actually, it is as following: start-stop-daemon --start --exec "${REDSOCKS_BINARY}" \ -p "${REDSOCKS_PIDFILE}" -c ${REDSOCKS_CONFIG} start-stop-daemon --stop --exec "${REDSOCKS_BINARY}" \ -p "${REDSOCKS_PIDFILE}" -c "${REDSOCKS_CONFIG}" start-stop-daemon --signal HUP --exec "${REDSOCKS_BINARY}" \ -p "${REDSOCKS_PIDFILE}" -c "${REDSOCKS_CONFIG}" and it should be as: start-stop-daemon --start --exec "${REDSOCKS_BINARY}" \ -- -p "${REDSOCKS_PIDFILE}" -c ${REDSOCKS_CONFIG} start-stop-daemon --stop --exec "${REDSOCKS_BINARY}" \ -- -p "${REDSOCKS_PIDFILE}" -c "${REDSOCKS_CONFIG}" start-stop-daemon --signal HUP --exec "${REDSOCKS_BINARY}" \ -- -p "${REDSOCKS_PIDFILE}" -c "${REDSOCKS_CONFIG}"
Created attachment 612056 [details] redsocks.init replacement If is to be updated, I'd suggest this instead to eliminate issues
Followed your advice and updated PR
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d1fbcd0b68cb2af1ce4491604b7f64d3d12deb2 commit 8d1fbcd0b68cb2af1ce4491604b7f64d3d12deb2 Author: Quentin Retornaz <gentoo@retornaz.com> AuthorDate: 2020-02-06 01:19:51 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2020-02-08 17:40:14 +0000 net-proxy/redsocks: fix command args in initd Closes: https://bugs.gentoo.org/708438 Closes: https://github.com/gentoo/gentoo/pull/14575 Signed-off-by: Quentin Retornaz <gentoo@retornaz.com> Signed-off-by: Matt Turner <mattst88@gentoo.org> net-proxy/redsocks/files/redsocks.init-r1 | 43 +++++++++++++++++++++++++++ net-proxy/redsocks/redsocks-0.5-r1.ebuild | 49 +++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+)