Skip to main content
Topic: minidlna (Read 1174 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

minidlna

Minidlna use systemd.

 

Re: minidlna

Reply #2
There may be an even simpler solution: I tested the software on a Devuan Ascii: just an install from the repository automatically included by Devuan...
sudo apt-get install minidlna
did the trick.
It included a standard Init-SysV script to be found in /etc/init.d
OpenRC can handle that, it worked right immediately.
You can download the source files from https://sourceforge.net/projects/minidlna/files/minidlna/1.2.1/, unpack it, ./configure with the right options and  compile it (make, sudo make install)
The tar package includes a sample LSB init script. If you are good at it, you could make an AUR package of it :-)
Good luck. André


Re: minidlna

Reply #4
The problem is: In Artix the /lib/lsb/init-functions are not implemented. It seems adherence to LSB standards could help....
Devuan ascii has implemented it.  Is there a package for LSB functions? I have found none so far.

Re: minidlna

Reply #5
To all of you: hello
I have created a very minimalistic init script for you. It is tested and it works without any trouble.

Make sure you have the latest mirrorlist and pacman -Syu updates.
Then you install minidlana, it comes from some repo ready for Arix, but it provides no init-script.
sudo pacman -S minidlna

Now read this:

The Open-RC INIT script:
A very simplistic, minimal init script for OpenRC and minidlna
(Derived from file: /etc/init.d/ntpd)
-----------------------------------------

Configuration File:
/etc/minidlna.conf

PID File:
/var/run/minidlna/minidlna.pid

Watches:
8192 --> should be higher. i.e.:
echo 16384 > /proc/sys/fs/inotify/max_user_watches:


The Init Script:
/etc/init.d/minidlna:
----------------------------------------->
#!/usr/bin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# A very simple script to run minidlna, created for Artix Linux, Andre Kiepe 29-04-2018

description="minidlna - the minidlna multimedia server daemon"
pidfile="/run/minidlna/minidlna.pid"
command="/usr/bin/minidlnad"
command_args=""
start_stop_daemon_args=""

depend() {
   use net dns logger
   
}

start_pre() {
   if [ ! -f /etc/minidlna.conf ] ; then
      eerror "Please create /etc/minidlna.conf"
      return 1
   fi
   return 0
}
<-----------------------------------------

Set up service to autostart:
sudo sudo rc-update add minidlna

Start/Stop service:
sudo rc-service minidlna start
sudo rc-service minidlna stop

I hope I have not violated any copyright or whatever rule. It's just there to help you.
Tested on Sun, 29-APR-2018: Works perfectly well


Re: minidlna

Reply #7
Well, now, that looks nice. Thank you.
As soon as I can get a new artix-iso that installs and is actually able to do the update again..... I will test that new nice package.
Just when does such an iso come out (open-rc)? The old one (early 2018) fails constantly to update correctly. I seem to have no luck editing mirrorlists and paqcman.conf files.
Regards

Re: minidlna

Reply #8
Well, now, that looks nice. Thank you.
As soon as I can get a new artix-iso that installs and is actually able to do the update again..... I will test that new nice package.
Just when does such an iso come out (open-rc)? The old one (early 2018) fails constantly to update correctly. I seem to have no luck editing mirrorlists and paqcman.conf files.
Regards
You can install an OpenRC system from a runit iso.
the runit guy on artix


Re: minidlna

Reply #10
The question is how to install a runit system from a runit-iso?
With both installation methods I ended up with an openrc installation.

What?
Just do "basestrap /mnt base base-devel runit".
the runit guy on artix


Re: minidlna

Reply #12
Now I know

It is written in the wiki, in kind of little hidden way
Quote
Use basestrap to install the base and optionally the base-devel package groups and your preferred init (currently available: openrc and runit):
Code: [Select]
 basestrap /mnt base base-devel openrc
Happy falling

Re: minidlna

Reply #13
Well, using the new iso (runit-iso, 20180604) I have installed a fresh system, openrc, and tested the new minidlna package.
Fine, it works well, so the issue is solved.
Thanks to all that put effort into it and for the hints.
It looks like the openrc is getting hold in our systemd-free world, ir's a wonderful solution. True to the open spirit.