Bug#1059712: orphan-sysvinit-scripts: dnscrypt-proxy init script not working out of the box
Matthias Geiger
werdahias at riseup.net
Sat Dec 30 18:09:00 GMT 2023
On Sat, 30 Dec 2023 18:52:52 +0100 Matthias Geiger
<werdahias at riseup.net> wrote:
> Package: orphan-sysvinit-scripts
> Version: 0.15
> Severity: important
>
> Dear Maintainer,
>
> I installed dnscrypt-proxy alongside orphan-sysvinit-scripts. The
> service does not start however. The script included in o-s-s passes
> the -daemonize flag in line 44. This flag does not exist however on the
> sid version of dnscrypt-proxy, thus rendering the script broken.
> The systemd unit just calls this: "/usr/sbin/dnscrypt-proxy -config
/etc/dnscrypt-proxy/dnscrypt-proxy.toml".
>
> Trying to reproduce that by amending the init script [see attachment]
> tries to start the service but fails because listen_addresses is empty.
> This is as far as I got trying to get the service to run.
attached script seems to work under openRC (copied from alpine and
modified).
best,
--
Matthias Geiger <werdahias>
Debian Maintainer
"Freiheit ist immer Freiheit des anders Denkenden" -- Rosa Luxemburg
-------------- next part --------------
#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
supervisor=supervise-daemon
command="/usr/sbin/dnscrypt-proxy"
command_args="-config /etc/dnscrypt-proxy/dnscrypt-proxy.toml"
pidfile="/run/${RC_SVCNAME}.pid"
command_background="yes"
depend() {
use net logger
provide dns
}
start_pre() {
checkpath -q -d -m 0775 -o "${command_user}" \
/var/cache/"${RC_SVCNAME}" \
/var/log/"${RC_SVCNAME}"
setcap cap_net_bind_service=+ep "${command}"
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x18BD106B3B6C5475.asc
Type: application/pgp-keys
Size: 4036 bytes
Desc: OpenPGP public key
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20231230/5f7603e9/attachment.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20231230/5f7603e9/attachment.sig>
More information about the Debian-init-diversity
mailing list