You are not logged in.

#151 2013-02-12 16:51:50

Barthalion
Forum Fellow
From: Poland
Registered: 2010-02-26
Posts: 111

Re: OpenRC & eudev on Arch

Very cool fight guys. Whoever will be knocked out, keep in mind avoiding conflicts with official packages (that's why /etc/openrc isn't bad idea), providing alternative configuration files (MySQL) and other stuff like overwriting user settings (what both apg's and artoo's packages are doing if nothing has changed). I just want to say that average user will pick smooth solution. smile

Offline

#152 2013-02-12 17:28:15

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

Barthalion wrote:

Very cool fight guys. Whoever will be knocked out, keep in mind avoiding conflicts with official packages (that's why /etc/openrc isn't bad idea), providing alternative configuration files (MySQL) and other stuff like overwriting user settings (what both apg's and artoo's packages are doing if nothing has changed). I just want to say that average user will pick smooth solution. smile

Concerning conflicts.
There won't be any conflicts soon, since Arch dropped the initscripts. This is how I understand it.
All packages which still provide eg files in /etc/conf.d won't in the foreseeable near future.
They will only provide systemd service files. These /etc/conf.d files are left from not up-to-date systemd packages still providing initscripts.

Hope it clears up further the argument for havinfg standard /etc paths.

End of initscripts support

2012-11-04 - Tom Gundersen

As systemd is now the default init system, Arch Linux is receiving minimal testing on initscripts systems. Due to a lack of resources and interest, we are unlikely to work on fixing initscripts-specific bugs, and may close them as WONTFIX.

We therefore strongly encourage all users to migrate to systemd as soon as possible. See the systemd migration guide.

To ease the transition, initscripts support will remain in the official repositories for the time being, unless otherwise stated. As of January 2013, we will start removing initscripts support (e.g., rc scripts) from individual packages without further notice.
https://www.archlinux.org/news/end-of-i … s-support/

I already named three scripts back to original name, iirc cpupower, postgresql and samba.

These are atm the files which would produce a conflict in /etc/conf.d, if they weren't installed as posted, so without openrc suffix.

named-openrc
gpm-openrc
ftpd-openrc
iptables-openrc
nfs-openrc
rsyslog-openrc
squid-openrc
ypbind-openrc


This list should become empty soon according to announcement.

Last edited by artoo (2013-02-12 19:31:07)

Offline

#153 2013-02-17 06:45:12

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: OpenRC & eudev on Arch

artoo wrote:

To my mind, the init.sh and init-early.sh need to be patched from gitsource to match the altered path in /etc, so from /etc/rc.conf to /etc/openrc/rc.conf.

artoo wrote:

apq, I noticed yesterday the openrc source needs to be patched.

The consolefont.in specifically, located in src/openrc/init.d/

consolefont points to a gentoo consolefont path, on Arch, it should read /usr/share/kbd/consolefonts.

artoo wrote:

The bottom line, as long as openrc source doesn't fully support a fully configurable sysconfdir, openrc4arch won't try to change it.

artoo wrote:

I do not alter the make files to get prefix working, but to get the runlevels installed. The openrc source required one patch(bug report on gentoo, see pkgbuild), otherwise the source will not install any symlinks in /etc/runlevels and boot fails if you don't add them all manually. It is not like it is meant to be or intended behavior, would you agree?

I think that is all of the OpenRC bugs that have been mentioned so far in this thread.  All of them have been fixed in git upstream.  artoo, you should be able to remove both of your patches as soon as they publish a new release.

Has anybody encountered any other issues that need to be fixed upstream?

Offline

#154 2013-02-17 09:54:34

The Solutor
Member
From: Italy
Registered: 2013-02-10
Posts: 10

Re: OpenRC & eudev on Arch

No major issues encountered here.

You may want to add the hostapd plugin, here is it the one I'm using (it required minor fixes)

/etc/openrc/init.d/hostapd

#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-init.d,v 1.3 2011/09/25 14:03:46 gurligebis Exp $

extra_started_commands="reload"

depend() {

NetworkManager

        local myneeds=
        for iface in ${INTERFACES}; do
                myneeds="${myneeds} ${iface}"
        done

        [ -n "${myneeds}" ] && need ${myneeds}
        use logger
}

checkconfig() {
        local file

        for file in ${CONFIGS}; do
                if [ ! -r "${file}" ]; then
                        eerror "hostapd configuration file (${CONFIG}) not found"
                        return 1
                fi
        done
}

start() {
        checkconfig || return 1

        ebegin "Starting ${SVCNAME}"
        start-stop-daemon --start --exec /usr/bin/hostapd \
                -- -B ${OPTIONS} ${CONFIGS}
        eend $?
}

stop() {
        ebegin "Stopping ${SVCNAME}"
        start-stop-daemon --stop --exec /usr/bin/hostapd
        eend $?
}

reload() {
        checkconfig || return 1

        ebegin "Reloading ${SVCNAME} configuration"
        kill -HUP $(pidof /usr/bin/hostapd) > /dev/null 2>&1
        eend $?
}

/etc/openrc/conf.d/hostapd

# Space separated List of interfaces which needs to be started before
# hostapd
#INTERFACES="net.wlan0"

# Space separated list of configuration files
CONFIGS="/etc/hostapd/hostapd.conf"

# Extra options to pass to hostapd, see hostapd(8)
OPTIONS=""

P.S. we should settle about some plugin naming (like NetworkManager v.s. networkmanager or alsa v.s. alsa-sound) given the dependency on some other plugins, this is not a secondary detail

Last edited by The Solutor (2013-02-17 10:09:26)

Offline

#155 2013-02-20 13:42:28

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

The Solutor wrote:

P.S. we should settle about some plugin naming (like NetworkManager v.s. networkmanager or alsa v.s. alsa-sound) given the dependency on some other plugins, this is not a secondary detail


Good call, I will change back to alsa-sound as on gentoo.

Concerning NM, the difference, I use for NM a gentoo configure flag and gentoo patch set to generate the runscript and the ifnet plugin. Without ifnet plugin, NM won't change to active state and remains inactive.
It gets named "NetworkManager", contrary to default networkmanager on Arch.

./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --libexecdir=/usr/lib/$_pkgname \
    --with-crypto=nss \
    --with-distro=gentoo \
    --with-dbus-sys-dir=/etc/dbus-1/system.d \
    --with-dhclient=/usr/sbin/dhclient \
    --with-dhcpcd=/usr/sbin/dhcpcd \
    --with-iptables=/usr/sbin/iptables \
    --with-systemdsystemunitdir=/usr/lib/systemd/system \
    --with-udev-dir=/usr/lib/udev \
    --with-resolvconf=/usr/sbin/resolvconf \
    --with-session-tracking=ck \
    --disable-static \
    --enable-more-warnings=no \
    --disable-wimax
apg wrote:

I think that is all of the OpenRC bugs that have been mentioned so far in this thread.  All of them have been fixed in git upstream.  artoo, you should be able to remove both of your patches as soon as they publish a new release.


One patch to remove, as far as I know.

Did Arch change the install location of the consolefonts? They are on my system still in /usr/share/kbd/consolefonts. On Gentoo it is /usr/share/consolefonts.
Arch and Gentoo consolefont locations are different as of 0.11.8.

My repo is currently offline due to DDoS attack, so provider says.

Last edited by artoo (2013-02-20 13:54:34)

Offline

#156 2013-02-20 13:54:38

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: OpenRC & eudev on Arch

artoo wrote:

One patch to remove, as far as I know.

Did Arch change the install location of the consolefonts? They are on my system still in /usr/share/kbd/consolefonts. On Gentoo it is /usr/share/consolefonts.
Arch and Gentoo consolefont locations are different as of 0.11.8.

They are still in different locations, but that no longer matters.  You can remove that patch as well.

Offline

#157 2013-02-28 22:12:54

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

The Solutor wrote:

No major issues encountered here.

You may want to add the hostapd plugin, here is it the one I'm using (it required minor fixes)

/etc/openrc/init.d/hostapd


I have add hostapd to plugins source, and a git build is also on github.

Would be helpful if you could test it.

Offline

#158 2013-02-28 22:21:28

progandy
Member
Registered: 2012-05-17
Posts: 5,268

Re: OpenRC & eudev on Arch

artoo wrote:

It gets named "NetworkManager", contrary to default networkmanager on Arch.

Well, the systemd service file is also called NetworkManager.service. It is the only service file with upper-case letters in it...


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#159 2013-03-05 16:09:37

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

progandy wrote:
artoo wrote:

It gets named "NetworkManager", contrary to default networkmanager on Arch.

Well, the systemd service file is also called NetworkManager.service. It is the only service file with upper-case letters in it...

I'll try lower case, as soon as NM 0.9.8 was unmasked in portage.

apg wrote:

They are still in different locations, but that no longer matters.  You can remove that patch as well.

I made test builds of git and 0.11.8

I removed both patches in git build, but they are needed for stable 0.11.8 though.

Offline

#160 2013-04-01 14:46:18

romsom
Member
Registered: 2012-08-27
Posts: 4

Re: OpenRC & eudev on Arch

Are there any news here?
openrc-arch-services haven't been updated for quite a while.
Also the discussion here seems to have ceased...

I'm using openrc from AUR right now and it works quite well.
I'd like to continue using it in the future because of some "killer features" (e.g. shutdown not causing my RAID to resync like systemd did).
Thanks!

Roman

Offline

#161 2013-04-01 17:39:38

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: OpenRC & eudev on Arch

If you have any particular problem, then we can try and help you out. As you said the package is working fine, so there isn't much to talk about. Also artoo seems hard at work as always. In case you need a particular service file, there are quite a lot on artoo's github page.

Offline

#162 2013-04-02 12:21:30

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

x33a wrote:

If you have any particular problem, then we can try and help you out. As you said the package is working fine, so there isn't much to talk about. Also artoo seems hard at work as always. In case you need a particular service file, there are quite a lot on artoo's github page.


I actually was gonna update the thread with news.

I have written a script which downloads all files from gentoo and fixes them to fit arch.
The script is easy to handle and alter.
The script reads from two list files what gentoo files to download.

I discontinued openrc4arch and changed everything to openrc naming. so we actually have two openrc packages, which are likely different with install locations.
I made it so to get rid of a separate maintenance of the openrc initscripts for packages and to provide files for apg builds, assuming /usr prefix is switched off.
The script is way from perfect, still being enhanced, but does the job.

But, be aware, my builds have a prefix /usr install set in the script.
If you want the files fixed without prefix header, you need to comment out

mk_str $2 '#!/sbin/runscript' "#!${PRE}/sbin/runscript"

Anyway, here is the script, so everybody can make service files. smile

https://github.com/udeved/pkgbuilds/tree/master/scripts

PS: @Arch people:

It would be very nice if you removed the orphaned files from base pkg builds in this list, or if you could give a short statement when this is about to happen as announced.
I encountered with some services renaming problems if I provide different names to the conflicting file names in the arch packages left from old initscripts

https://github.com/udeved/pkgbuilds/tre … /conflicts

PSPS:

@progandy

Networkmanager 0.9.8 is available as build and binary pkg, works well, and has lower case service name now.

Last edited by artoo (2013-04-02 16:18:12)

Offline

#163 2013-04-06 15:54:06

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

Quick update:

I have successfully tested eudev and openrc.
I will upload binary packages to my repo soon.

Offline

#164 2013-04-07 17:59:01

prazzb
Member
Registered: 2012-10-12
Posts: 14

Re: OpenRC & eudev on Arch

artoo wrote:

I have successfully tested eudev and openrc.

Just a thought.... why don't use udev from gentoo directly rather can using eudev
Even they have told that it's a pet project and not for serious use

Offline

#165 2013-04-08 02:14:15

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

prazzb wrote:
artoo wrote:

I have successfully tested eudev and openrc.

Just a thought.... why don't use udev from gentoo directly rather can using eudev
Even they have told that it's a pet project and not for serious use

eudev is the gentoo udev fork, which isolates once again udev from systemd.
I just have to do some more dependency checks, as eg dbus or syslog-ng need to be recompiled with disabled systemd.

Offline

#166 2013-04-08 09:10:15

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: OpenRC & eudev on Arch

artoo wrote:
prazzb wrote:
artoo wrote:

I have successfully tested eudev and openrc.

Just a thought.... why don't use udev from gentoo directly rather can using eudev
Even they have told that it's a pet project and not for serious use

eudev is the gentoo udev fork, which isolates once again udev from systemd.

Please watch this: https://fosdem.org/2013/schedule/event/eudev/

Then check out this: https://github.com/gentoo/eudev.git

You really don't want to be using this stuff for anything else than playing around...

Offline

#167 2013-04-08 13:07:23

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

tomegun wrote:
artoo wrote:
prazzb wrote:

Just a thought.... why don't use udev from gentoo directly rather can using eudev
Even they have told that it's a pet project and not for serious use

eudev is the gentoo udev fork, which isolates once again udev from systemd.

Please watch this: https://fosdem.org/2013/schedule/event/eudev/

Then check out this: https://github.com/gentoo/eudev.git

You really don't want to be using this stuff for anything else than playing around...

I don't see a reason to do so.

I am aware of some flaws currently, it is why I said I will provide packages soon, not now.

Please, no systemd fan boy mud slinging here. Let the user decide.

Last edited by artoo (2013-04-08 13:08:58)

Offline

#168 2013-04-08 16:33:14

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: OpenRC & eudev on Arch

artoo wrote:
tomegun wrote:

Please watch this: https://fosdem.org/2013/schedule/event/eudev/

Then check out this: https://github.com/gentoo/eudev.git

You really don't want to be using this stuff for anything else than playing around...

I don't see a reason to do so.

Well, before providing software, to users, it makes sense to familiarise yourself a bit with it. The link I gave above is to a talk given by the eudev people, where they explain their lack of experience and how eudev is not meant to be a serious project, but rather just a pet project for them to learn about udev.

Don't take my word for it though, listen to the talk...

artoo wrote:

I am aware of some flaws currently, it is why I said I will provide packages soon, not now.

Please, no systemd fan boy mud slinging here. Let the user decide.

I don't see how linking to a presentation given by the eudev poelpe, and linking to their code, or trying to summarise the description of eudev given by the people behind eudev is 'mud slinging'.

Sure, let the users decide, but at least be honest about what kind of software you are proposing (and what kind of quality the user should expect).

Offline

#169 2013-04-08 16:46:52

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: OpenRC & eudev on Arch

tomegun wrote:

Sure, let the users decide, but at least be honest about what kind of software you are proposing (and what kind of quality the user should expect).

Tom, I am sure that any user wanting to switch to eudev will be aware of its quality and stability etc. Not that I am countering your view about its usability, at least at the current stage.

Offline

#170 2013-04-08 18:02:51

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: OpenRC & eudev on Arch

tomegun wrote:
artoo wrote:
prazzb wrote:

Just a thought.... why don't use udev from gentoo directly rather can using eudev
Even they have told that it's a pet project and not for serious use

eudev is the gentoo udev fork, which isolates once again udev from systemd.

Please watch this: https://fosdem.org/2013/schedule/event/eudev/

[OT]this was extremely painful to watch[/OT]

Offline

#171 2013-04-08 18:52:39

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

x33a wrote:
tomegun wrote:

Sure, let the users decide, but at least be honest about what kind of software you are proposing (and what kind of quality the user should expect).

Tom, I am sure that any user wanting to switch to eudev will be aware of its quality and stability etc. Not that I am countering your view about its usability, at least at the current stage.


To shorten the discussion, I agree.

I am aware of current state, yet eudev can only become an alternative if people test it and report bugs. That is the aim of providing it for arch.

I just want to prevent a discussion you can find on any eudev related thread or mailing list.

"This git repo is a fork of git://anongit.freedesktop.org/systemd/systemd
with the aim of isolating udev from any particular flavor of system
initialization.  In this case, the isolation is from systemd.

This is a project started by Gentoo developers and testing is currently being
done mostly on OpenRC.  We welcome contribution from others using a variety of
system initializations to ensure eudev remains system initialization and
distribution neutral."

Sounds like a good aim to me. Others might disagree, so be it.

I assume people who switch to eudev know what they do, and will not use it on a productive system currently.

Last edited by artoo (2013-04-08 18:54:49)

Offline

#172 2013-04-12 02:06:24

zwa
Member
Registered: 2005-12-05
Posts: 106

Re: OpenRC & eudev on Arch

tomegun wrote:
artoo wrote:
prazzb wrote:

Just a thought.... why don't use udev from gentoo directly rather can using eudev
Even they have told that it's a pet project and not for serious use

eudev is the gentoo udev fork, which isolates once again udev from systemd.

Please watch this: https://fosdem.org/2013/schedule/event/eudev/

Then check out this: https://github.com/gentoo/eudev.git

You really don't want to be using this stuff for anything else than playing around...


Interesting, I did not know about the quality of the eudev project. It's good to keep people informed about the software you are using or may use in the future smile

Offline

#173 2013-04-14 17:15:21

gothmog123
Member
Registered: 2012-10-31
Posts: 124

Re: OpenRC & eudev on Arch

Guys, just took openrc for a whirl, and after startx my hostname is host-001. I'd set it in conf.d

Consolekit login is also not working (worked before on openrc), which I am suspecting is due to the hostname problem.

Offline

#174 2013-04-15 04:17:54

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: OpenRC & eudev on Arch

@ gothmog123, without starting X is the hostname fine?

You might try putting it in /etc/hosts too.

Offline

#175 2013-04-15 05:52:49

gothmog123
Member
Registered: 2012-10-31
Posts: 124

Re: OpenRC & eudev on Arch

Yes, without starting x it's fine.

Offline

Board footer

Powered by FluxBB