From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4jdTQn6y83z2yDy for ; Mon, 30 Nov 2026 16:06:09 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4jdTQk1h6nz2xgD for ; Mon, 30 Nov 2026 16:06:06 +0000 (UTC) Received: from michael.sof.ipfire.org (michael.sof.ipfire.org [172.28.140.100]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bit raw public key) server-digest SHA256 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "michael.sof.ipfire.org", Issuer "YE2" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4jdTQj44Lkz6hP; Mon, 30 Nov 2026 16:06:05 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1796054765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gwRGyLZ75BGU6PcVeZrY4t6ABjLhCVr7u677mvKoHD0=; b=C8w4/jMfsBh2i06aZoI5f5OBgM7cy63ctAnD1i8DbFiRMmaRtlVmDFpejAX6PpcYWPHfVj BVCIlhIKTIAD1DCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1796054765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gwRGyLZ75BGU6PcVeZrY4t6ABjLhCVr7u677mvKoHD0=; b=DKLiX8/QTYb2thjfNkROUvkPA4NKdcubj+ramhsI+PWkPcSOmdBg3K9mx7q6Hck3HtN9jx OPgit58gMZrvmmkUuGLnKdzRghUrtuZPseQ+uCSRMhyDKsxwaE7JejF1v5JS0VKjz+bt9b h1zq1OX8pRDQ29hq774sqzm86IXMlPtN1Bus8JUrj/tJ9Wzq7Rs0gPcNVz3Zx8NFYbbzka 7FW2ZVfMRyqLAgOA81MmSsEpbkBrKkwT29JJ7KOJg/xzB6yA/UZkTW9N4xSvx040AmkNu7 0kiirGKrBg5kaiTaansF41Q8r92MFMT5ByT0WMi71hCG/SovxwmDeCv68Hr2/A== Received: by michael.sof.ipfire.org (Postfix, from userid 0) id 4jdTQh6FSGz2ydV; Mon, 30 Nov 2026 16:06:04 +0000 (UTC) From: Michael Tremer To: Stefan Schantl Cc: development@lists.ipfire.org Subject: Re: [PATCH 08/13] gerbera: Add initscript In-Reply-To: <20261130154031.269150-9-stefan.schantl@ipfire.org> References: <20261130154031.269150-9-stefan.schantl@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: <4jdTQh6FSGz2ydV@michael.sof.ipfire.org> Date: Mon, 30 Nov 2026 16:06:04 +0000 (UTC) Hello Stefan, some comments on the initscript: > + route add -net 239.0.0.0 netmask 255.0.0.0 green0 There is trailing whitespace (a tab) at the end of this line. Also, green0 is hard-coded, and I am not sure what happens when there is no green0 (or when the user wants this to be offered on blue). Could this use the interface settings from /var/ipfire/ethernet/settings? If the route already exists (e.g. after a crash), then "route add" fails and I do not see any error handling for it, but the script will carry on. > + loadproc /usr/bin/gerbera -u nobody \ > + -c /etc/gerbera/config.xml \ > + -l /var/log/gerbera.log \ > + -m /var/lib/gerbera \ > + -e green0 $2 $3 $4 $5 $6 $7 -d The indentation of the last line is mixed (spaces vs. tabs). I am also wondering whether nobody is able to write to /var/log/gerbera.log, because nobody cannot create files in /var/log. Did you test this? Passing $2..$7 to the daemon seems unnecessary. Why do we need that? > + echo "Usage: ${{0}} {{start|stop|init|status}}" There is no "init" action and "restart" is missing from this list. -Michael