Git Product home page Git Product logo

Comments (23)

azlux avatar azlux commented on June 11, 2024

I think Gentoo have init.d system ?

from log2ram.

MegaV0lt avatar MegaV0lt commented on June 11, 2024

Yes, i have /etc/init.d... Sorry. At boottime on tehn screen i can see openrc starting. i think i was misunderstanding that.

from log2ram.

azlux avatar azlux commented on June 11, 2024

related to #16

from log2ram.

azlux avatar azlux commented on June 11, 2024

Are you familiar to use iniV ? I will allow init configuration, but I cannot test it here.

from log2ram.

MegaV0lt avatar MegaV0lt commented on June 11, 2024

No, sorry. Never heard about iniV

from log2ram.

azlux avatar azlux commented on June 11, 2024

Sorry the name of init.d script is sysvinit (also named SystemV), the doc say it's compatible with OpenRC
What is the output of cat /proc/1/comm ?

from log2ram.

MegaV0lt avatar MegaV0lt commented on June 11, 2024

Well, minimal... Have seen already some but can not convert from systemd :-(
The Gentoo i used is Gen2VDR that is a distribution bundled with VDR and Kodi to have an Linux HTPC. Bas System is Gentoo.

The reqested Output:

root auf hdvdr01 am 19.02.2018 13:52 
[~] # cat /proc/1/comm
init

from log2ram.

MegaV0lt avatar MegaV0lt commented on June 11, 2024

I found this: https://github.com/akhilvij/systemd-to-sysvinit-converter
But i doubt it is much help

from log2ram.

azlux avatar azlux commented on June 11, 2024

@fugitive90 Maybe you can help with that. I see you have fork my project for FreeBSD use. We can open a branch for sysvinit compatibility.

from log2ram.

fugitive90 avatar fugitive90 commented on June 11, 2024

Hello everyone.
Sorry didn't noticed notification. @azlux yes, I planed to made for sysvinit and open-rc, but didn't got time to finish it. I'll see what I can do.

from log2ram.

azlux avatar azlux commented on June 11, 2024

@fugitive90 You can make changes into https://github.com/azlux/log2ram/tree/sysvinit
I see you have change many function, maybe we can create a functional branch for init.d system and add other changes later.

from log2ram.

fugitive90 avatar fugitive90 commented on June 11, 2024

@azlux Please find me on freenode, #devuan,#alpine-linux or #artix nick ``fugitive'' so we can discuss it.

from log2ram.

MegaV0lt avatar MegaV0lt commented on June 11, 2024

i tried to install om my VDR. But it fails:

root auf hdvdr01 am 01.06.2018 13:30
[~/log2ram-sysvinit] # bash ./install.sh
./install.sh: Zeile 14: systemctl: Kommando nicht gefunden.

Reboot to activate log2ram

from log2ram.

Sailing74 avatar Sailing74 commented on June 11, 2024

from log2ram.

MegaV0lt avatar MegaV0lt commented on June 11, 2024

Is Gentoo Linux

root auf hdvdr01 am 19.02.2018 13:52
[~] # cat /proc/1/comm
init

from log2ram.

MegaV0lt avatar MegaV0lt commented on June 11, 2024

i think it is openrc-init
https://wiki.gentoo.org/wiki/Init_system

from log2ram.

azlux avatar azlux commented on June 11, 2024

@MegaV0lt Sorry I cannot make the init script for gentoo. I never use it. If you think you can do it, I will create a Branch for that.

from log2ram.

karlh626 avatar karlh626 commented on June 11, 2024

I have several raspberry pis running Rasbian (Debian 7) which still uses init instead of systemd. I don't know if a solution for init on Rasbian might benefit the Gentoo distro in any way?

from log2ram.

MegaV0lt avatar MegaV0lt commented on June 11, 2024

Gen2VDR (Gentoo) is using init.d-Scripts. Example:

root auf hdvdr01 am 07.06.2018 08:31 
[~] # cat /etc/init.d/ntpd
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

description="ntpd - the network time protocol daemon"
pidfile="/var/run/ntpd.pid"
command="/usr/sbin/ntpd"
command_args="-p ${pidfile} ${NTPD_OPTS}"
start_stop_daemon_args="--pidfile ${pidfile}"

depend() {
	use net dns logger
	after ntp-client
}

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

start-stop-deamion is also in some scripts

from log2ram.

MegaV0lt avatar MegaV0lt commented on June 11, 2024

I started a attempt to include detection of init-system and install/uninstall files acording to the init-system.
My first try looks good so far. You can take a look here: https://github.com/MegaV0lt/log2ram

from log2ram.

fhoshino avatar fhoshino commented on June 11, 2024

Is it just recent update broke openrc support?

from log2ram.

MegaV0lt avatar MegaV0lt commented on June 11, 2024

What update you mean?

from log2ram.

fhoshino avatar fhoshino commented on June 11, 2024

Never mind, I just copied the old open-rc script from another alpine box and it works now, just guessing recent update removed / broke open-rc support

from log2ram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.