public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: Stefan Schantl <stefan.schantl@ipfire.org>
Cc: development@lists.ipfire.org
Subject: Re: [PATCH 08/13] gerbera: Add initscript
Date: Mon, 30 Nov 2026 16:06:04 +0000 (UTC)	[thread overview]
Message-ID: <4jdTQh6FSGz2ydV@michael.sof.ipfire.org> (raw)
In-Reply-To: <20261130154031.269150-9-stefan.schantl@ipfire.org>

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


  reply	other threads:[~2026-11-30 16:06 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 15:18 [Patchset] - Gerbera a uPnP/DLNA media server Stefan Schantl
2026-11-30 15:18 ` [PATCH 01/13] libupnp: New package Stefan Schantl
2026-11-30 16:06   ` Michael Tremer
2026-11-30 15:18 ` [PATCH 02/13] spdlog: " Stefan Schantl
2026-11-30 15:18 ` [PATCH 03/13] jsoncpp: " Stefan Schantl
2026-11-30 15:18 ` [PATCH 04/13] pugixml: " Stefan Schantl
2026-11-30 15:18 ` [PATCH 05/13] duktape: " Stefan Schantl
2026-11-30 15:18 ` [PATCH 06/13] gerbera: " Stefan Schantl
2026-11-30 16:06   ` Michael Tremer
2026-11-30 15:18 ` [PATCH 07/13] gerbera: Ship default config file Stefan Schantl
2026-11-30 16:06   ` Michael Tremer
2026-11-30 15:18 ` [PATCH 08/13] gerbera: Add initscript Stefan Schantl
2026-11-30 16:06   ` Michael Tremer [this message]
2026-11-30 15:18 ` [PATCH 09/13] gerbera: Add backup definitions Stefan Schantl
2026-11-30 16:06   ` Michael Tremer
2026-11-30 15:18 ` [PATCH 10/13] gerbera: Update to 3.3.0 Stefan Schantl
2026-11-30 16:06   ` Michael Tremer
2026-11-30 15:18 ` [PATCH 11/13] libupnp: Rootfile update Stefan Schantl
2026-11-30 16:06   ` Michael Tremer
2026-11-30 15:18 ` [PATCH 12/13] gerbera: Fix installing config file Stefan Schantl
2026-11-30 16:06   ` Michael Tremer
2026-11-30 15:18 ` [PATCH 13/13] gerbera: Add rc symlinks for autostart on boot Stefan Schantl
2026-11-30 16:06   ` Michael Tremer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4jdTQh6FSGz2ydV@michael.sof.ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    --cc=stefan.schantl@ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox