From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Cc: Stefan Schantl <stefan.schantl@ipfire.org>
Subject: [PATCH 08/13] gerbera: Add initscript
Date: Mon, 30 Nov 2026 16:18:21 +0100 [thread overview]
Message-ID: <20261130154031.269150-9-stefan.schantl@ipfire.org> (raw)
In-Reply-To: <20261130154031.269150-1-stefan.schantl@ipfire.org>
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
lfs/gerbera | 2 +-
src/initscripts/packages/gerbera | 55 ++++++++++++++++++++++++++++++++
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 src/initscripts/packages/gerbera
diff --git a/lfs/gerbera b/lfs/gerbera
index 41b979f4b6..86b70019db 100644
--- a/lfs/gerbera
+++ b/lfs/gerbera
@@ -113,7 +113,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
chown nobody:nobody /var/lib/gerbera
#install initscripts
- #$(call INSTALL_INITSCRIPTS,$(SERVICES))
+ $(call INSTALL_INITSCRIPTS,$(SERVICES))
#install backup definition
#install -v -m 644 ${DIR_SRC}/config/backup/includes/minidlna \
diff --git a/src/initscripts/packages/gerbera b/src/initscripts/packages/gerbera
new file mode 100644
index 0000000000..f8884b3666
--- /dev/null
+++ b/src/initscripts/packages/gerbera
@@ -0,0 +1,55 @@
+#!/bin/sh
+########################################################################
+# Begin $rc_base/init.d/
+#
+# Description : gerbera initscript
+#
+# Authors : Arne Fitzenreiter
+# Stefan Schantl
+#
+# Version : 01.00
+#
+# Notes : for www.ipfire.org - GPLv3
+#
+########################################################################
+
+. /etc/sysconfig/rc
+. ${rc_functions}
+
+case "$1" in
+ start)
+ boot_mesg "Starting gerbera uPnP Mediaserver..."
+ route add -net 239.0.0.0 netmask 255.0.0.0 green0
+ 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
+ evaluate_retval
+ ;;
+
+
+ stop)
+ boot_mesg "Stopping gerbera uPnP Mediaserver..."
+ killproc /usr/bin/gerbera
+ evaluate_retval
+ route del -net 239.0.0.0 netmask 255.0.0.0 green0
+ ;;
+
+ restart)
+ ${0} stop
+ sleep 1
+ ${0} start
+
+ ;;
+ status)
+ statusproc /usr/bin/gerbera
+ ;;
+
+ *)
+ echo "Usage: ${0} {start|stop|init|status}"
+ exit 1
+ ;;
+esac
+
+# End $rc_base/init.d/
--
2.47.3
next prev parent reply other threads:[~2026-11-30 15:40 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 ` Stefan Schantl [this message]
2026-11-30 16:06 ` [PATCH 08/13] gerbera: Add initscript Michael Tremer
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=20261130154031.269150-9-stefan.schantl@ipfire.org \
--to=stefan.schantl@ipfire.org \
--cc=development@lists.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