Devuan bug report logs - #802
openrc: openrc-run: to many broken options

version graph

Package: openrc; Maintainer for openrc is (unknown); Source for openrc is src:openrc.

Reported by: Lorietta <lorietta2023@gmail.com>

Date: Sun, 19 Nov 2023 05:34:01 UTC

Severity: normal

Tags: debian

Found in version 0.45.2-2

Fixed in version 0.52.1-1

Done: Mark Hindley <mark@hindley.org.uk>

Full log


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

Received: (at submit) by bugs.devuan.org; 19 Nov 2023 05:33:06 +0000
Return-Path: <lorietta2023@gmail.com>
Delivered-To: bugs@devuan.org
Received: from email.devuan.org [2a01:4f8:140:32a1::58c6:6473]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Sun, 19 Nov 2023 05:33:06 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id JUAoOPOdWWVeLAAAmSBk0A
	(envelope-from <lorietta2023@gmail.com>)
	for <bugs@devuan.org>; Sun, 19 Nov 2023 05:32:35 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id DB0EF3B87; Sun, 19 Nov 2023 05:32:35 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS
	autolearn=ham autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::641; helo=mail-ej1-x641.google.com; envelope-from=lorietta2023@gmail.com; receiver=<UNKNOWN> 
Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641])
	by email.devuan.org (Postfix) with ESMTPS id 06BA85C
	for <submit@bugs.devuan.org>; Sun, 19 Nov 2023 05:32:29 +0000 (UTC)
Received: by mail-ej1-x641.google.com with SMTP id a640c23a62f3a-9c41e95efcbso449461266b.3
        for <submit@bugs.devuan.org>; Sat, 18 Nov 2023 21:32:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1700371949; x=1700976749; darn=bugs.devuan.org;
        h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
         :date:message-id:reply-to;
        bh=tBmYP3QBaTjYwgCPaLmaHiT9nkJ7v/xhQuAcM+0d52A=;
        b=jtTEFfz32hFMeWBKybHLXxJLbWxfqMVvPZza3KNzhkif4mDI8vEoZHdvQX7WAAO8D0
         uJtl/3jBcpOmnsO35rMAVBn+0RCaJGss5KvynV23qT45ik23z/W2weSfPEEYjsTxiDw1
         iNPsaAWGzlR3fylI2GOSQdgAjFtTSjLOBx7r1twOPUd1NuHkMvZfl/hjb2nR1auO/5fa
         9NsM8DAOMgRbz/lnL+vOgLeBIT70VX4Uo/8QZsWsx4/0NStj0IrXPnFeImiTbOtI+87K
         PppM86EDflZ4/2qdF0zsT8GwP34Y5xNzpNW0ZQXx30YafSWSfkM8YeE0O2P+pC4MvaJE
         u2OA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1700371949; x=1700976749;
        h=to:subject:message-id:date:from:mime-version:x-gm-message-state
         :from:to:cc:subject:date:message-id:reply-to;
        bh=tBmYP3QBaTjYwgCPaLmaHiT9nkJ7v/xhQuAcM+0d52A=;
        b=TH0+RXoKQvCT05O2TFCAuTHnM/t6gKLQcNyaPYZRvt81Ig3yeKgMdFAKlRLuV5eYXW
         zGbHLvgKdAJspoS4FIj9BukCCwhk62/aIgd9aGCsOCEa8wv726lyBBpSSL5YJ0i8J6rx
         mDFg4MRjSX7AZhxKBHiY/RAjEh8Jh2jCUsJyhe9Fj5yEGnG20hTJFB6gBCGsyUecXSW/
         ukNCujN7tsr7rqlbNEdKXY6ruMEktCfvVWnp8tzZL4azZwDpghvPMEQLicUWGHAu5yC9
         OuocpAO29sm0lLTV9ia9uZCZb989xcHdAPatcc/35npg0TpsD2/wakd6PT3H94uAb8MG
         k0gQ==
X-Gm-Message-State: AOJu0YwPmHRJDunBdP1xQMayzjuNWWY01y9vKvn3Magwu/s/L24kH78o
	GxeAz10CML7UmoAVcGSdK/xA9rqPLTjMF0qXQb0pJ9AhV/s=
X-Google-Smtp-Source: AGHT+IFYdb80Mv46HSdC1hdVdp946SOpzv4P+aQj4+bgRTbHyTqKWYQdN9UI+Klftmb9M+FBpOzzjzrLc1cCm/3aw34=
X-Received: by 2002:a17:906:c509:b0:9a2:185b:5375 with SMTP id
 bf9-20020a170906c50900b009a2185b5375mr2899707ejb.18.1700371948783; Sat, 18
 Nov 2023 21:32:28 -0800 (PST)
MIME-Version: 1.0
From: Lorietta <lorietta2023@gmail.com>
Date: Sun, 19 Nov 2023 16:32:19 +1100
Message-ID: <CANXYM9yNJpozDTbDTjFYnx+Bog5OTgOcABcY2AfuWkif-R_MrQ@mail.gmail.com>
Subject: openrc: openrc-run: to many broken options
To: submit@bugs.devuan.org
Content-Type: multipart/alternative; boundary="000000000000fe495f060a7ab117"
[Message part 1 (text/plain, inline)]
Package: openrc
Version: 0.45.2-2
Severity: normal
X-Debbugs-Cc: e697e365587869@beaconmessenger.com

Dear Maintainer,

When writing an init script with the openrc-run interpreter, and the
start-stop-daemon supervisor (used by default),
you cannot pass options such as 'output_log' and 'error_log',
because the Debian version of start-stop-daemon is incompatible with the
start-stop-daemon version from Gentoo.
openrc-run tries to pass options to start-stop-daemon that are known in
Gentoo,
but not understood by Debian's start-stop-daemon.

in this case, '--stdout' and '--stderror'. The Gentoo's start-stop-daemon
'--stderror' option has no equivalent in Debian,
the '--stdout' option can be replaced with '-O' or '--output'.
the same problem can be observed when using other options.
here is the complete list:
'output_log' (can be replaced with '--output' in Debian)
'error_log' (has no equivalent in Debian)
'output_logger' (has no equivalent in Debian)
'error_logger' (has no equivalent in Debian)
'capabilities' (has no equivalent in Debian)
For example, service 'myservice' with 'output_log=/var/log/myservice.log':

$ rc-service myservice start

Starting myservice ...

start-stop-daemon: unrecognized option "--stdout"

Try "start-stop-daemon --help" for more information.

Failed to start myservice

ERROR: myservice failed to start


I did not submit this bug to the Debian BTS because Debian has officially
switched to systemd
and I doubt that this bug report will be noticed there.



-- System Information:
Distributor ID: Devuan
Description: Devuan GNU/Linux 5 (daedalus)
Release: 5
Codename: daedalus
Architecture: x86_64

Kernel: Linux 6.1.0-13-amd64 (SMP w/6 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /bin/dash
Init: OpenRC (via /run/openrc), PID 1: openrc-init

Versions of packages openrc depends on:
ii  insserv      1.24.0-1
ii  libaudit1    1:3.0.9-1
ii  libc6        2.36-9+deb12u3
ii  libeinfo1    0.45.2-2
ii  libpam0g     1.5.2-6+deb12u1
ii  librc1       0.45.2-2
ii  libselinux1  3.4-1+b6

openrc recommends no packages.

Versions of packages openrc suggests:
pn  policycoreutils  <none>
ii  sysvinit-core    3.06-4devuan3

-- Configuration Files:
/etc/init.d/agetty [Errno 13] Permission denied: '/etc/init.d/agetty'
/etc/init.d/cgroups [Errno 13] Permission denied: '/etc/init.d/cgroups'
/etc/init.d/rc [Errno 13] Permission denied: '/etc/init.d/rc'
/etc/init.d/rcS [Errno 13] Permission denied: '/etc/init.d/rcS'
/etc/init.d/savecache [Errno 13] Permission denied: '/etc/init.d/savecache'
/etc/rc.conf changed [not included]

-- debconf-show failed
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Mon Jul 1 21:12:27 2024;