From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9663F1396D0 for ; Mon, 18 Sep 2017 02:22:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D4C61FC104; Mon, 18 Sep 2017 02:22:46 +0000 (UTC) Received: from blaine.gmane.org (unknown [195.159.176.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0AD341FC099 for ; Mon, 18 Sep 2017 02:22:45 +0000 (UTC) Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dtlhj-0006vQ-57 for gentoo-dev@lists.gentoo.org; Mon, 18 Sep 2017 04:22:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: Duncan <1i5t5.duncan@cox.net> Subject: [gentoo-dev] Re: [openrc] [systemd] make `service` common for both OpenRC and SystemD (like Debian/Ubuntu/whatever did) Date: Mon, 18 Sep 2017 02:22:27 +0000 (UTC) Message-ID: References: <3005176.dSsCWkhPpk@note> <20170917121248.379cef2936401535b14237f6@gentoo.org> <1505642707.1554.1.camel@gentoo.org> <20170917184411.49bb1d5af5326468a3b66b0b@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Pan/0.143 (Quaint little villages here and there; 75a9fd3d2) X-Archives-Salt: 01136b0e-62f8-4754-a1ff-40cbfb5b0965 X-Archives-Hash: 9d5d77fe16fe84c3dc83a46864dffc47 Andrew Savchenko posted on Sun, 17 Sep 2017 18:44:11 +0300 as excerpted: > On Sun, 17 Sep 2017 12:05:07 +0200 Michał Górny wrote: >> W dniu nie, 17.09.2017 o godzinie 12∶12 +0300, użytkownik Andrew >> Savchenko napisał: >> > On Sun, 17 Sep 2017 02:56:08 +0700 Vadim A. Misbakh-Soloviov wrote: >> > > Hi there! >> > > >> > > Every time I switch from mastering service on my work >> > > (Ubuntu-powered) to my own server farm (Gentoo powered) I'm going a >> > > bit frustrated: Ubuntu (with all my hate to many other things in >> > > it) has nice user-friendly way of managing services: you can freely >> > > call any of `service action` irrelevant to which >> > > init-system is currently in use. Will it be systemd, or (whatever >> > > there is alternative there). `service` wrapper will detect it >> > > anyway and will do the proper things (forward it to either systemd >> > > or another service manager). >> > > >> > > I'd like to suggest to remove `service` widget from openrc and make >> > > it the part of (which package? baselayout?)? Here is a pseudocode >> > > of how I see it: >> > > >> > > ``` >> > > servicename=${1} >> > > action=${2} >> > > >> > > if in_systemd; then >> > > systemctl "${action}" "${servicename}" >> > > else >> > > rc-service "${servicename}" "${action}" >> > > fi ``` >> > > >> > > Well, actually, there may be some more logic (for example, instance >> > > units (`unit@instance` in `systemd` vs `unit.instance` in openrc), >> > > "enable" action (forward it to `rc-update add` for `openrc`, >> > > probably) and maybe some more. But anyway, the conception is >> > > something like that. >> > > >> > > >> > > What do you think about that? >> > >> > https://xkcd.com/927/ >> > >> > We will create even more confusion for Gentoo users with one more >> > tool to do the same stuff. >> > >> > Of course you are free to implement some separate wrapper package, >> > but it must be completely optional, since some users will have no use >> > for it including myself. >> > >> > Really, unifying distributions is futile. We will have either the >> > same and only distribution (to rule them all) or an attempt will >> > fail. The same way you can try to unify emerge and apt tools via some >> > wrapper manager. >> >> Fun fact: systemd was created to unify distributions in one init >> system. > > Exactly. This case is perfectly covered by https://xkcd.com/927/ :) Well, I'd argue the case for "not 'perfectly'", because for better or for worse, systemd has had rather more luck at cross-distro init-system unification than that comic suggests. There's still special-cases like small embedded where systemd simply won't fit, and there's still a rather strident no-special-case opposition, but virtually all the "don't care as long as it works" distros are systemd, now -- the middle ground simply isn't there any more, it's all systemd. That's rather more successful as a unifying standard than the comic suggests, so while the comic does cover the general situation and perhaps matches the first few years near perfectly, as the situation has evolved by now, the punchline panel would have to be rather different to be a "perfect" cover. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman