Re: minidlna Reply #1 – 07 February 2018, 05:58:14 Quote from: kekek – on 07 February 2018, 04:54:00Minidlna use systemd.As it's only availabe from the Arch repos, this is to be expected. Feel free to contribute an OpenRC init scrip for it though.
Re: minidlna Reply #2 – 19 March 2018, 11:27:40 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 minidlnadid the trick.It included a standard Init-SysV script to be found in /etc/init.dOpenRC 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 #3 – 19 March 2018, 14:21:49 There is OpenRC and eudev on ascii you can install, then look for the script there.
Re: minidlna Reply #4 – 19 March 2018, 15:33:13 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 – 30 April 2018, 09:01:41 To all of you: helloI 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 minidlnaNow 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.confPID File:/var/run/minidlna/minidlna.pidWatches: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-2018description="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 minidlnaStart/Stop service:sudo rc-service minidlna startsudo rc-service minidlna stopI 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 1 Likes
Re: minidlna Reply #7 – 25 June 2018, 09:58:27 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 – 25 June 2018, 12:12:04 Quote from: andre – on 25 June 2018, 09:58:27Well, 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.RegardsYou can install an OpenRC system from a runit iso.
Re: minidlna Reply #9 – 25 June 2018, 13:56:48 Quote from: konimex – on 25 June 2018, 12:12:04You can install an OpenRC system from a runit iso.The question is how to install a runit system from a runit-iso?With both installation methods I ended up with an openrc installation.
Re: minidlna Reply #10 – 25 June 2018, 15:21:49 Quote from: fungalnet – on 25 June 2018, 13:56:48The 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".
Re: minidlna Reply #11 – 26 June 2018, 23:37:32 Quote from: konimex – on 25 June 2018, 15:21:49What?Just do "basestrap /mnt base base-devel runit".Now I know
Re: minidlna Reply #12 – 27 June 2018, 01:35:46 Quote from: fungalnet – on 26 June 2018, 23:37:32Now I knowIt is written in the wiki, in kind of little hidden wayQuoteUse 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
Re: minidlna Reply #13 – 29 July 2018, 12:39:46 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.
Re: minidlna Reply #14 – 31 January 2019, 12:25:51 Quote from: andre – on 30 April 2018, 09:01:41To all of you: helloI 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 minidlnaNow 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.confPID File:/var/run/minidlna/minidlna.pidWatches: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-2018description="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 minidlnaStart/Stop service:sudo rc-service minidlna startsudo rc-service minidlna stopI 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 wellwhere is the start-stop-damean called?