Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gentoo-systemd-only deprecation
Date: Wed, 31 Jul 2013 19:31:03
Message-Id: 51F9654D.3000605@gmail.com
In Reply to: Re: [gentoo-user] gentoo-systemd-only deprecation by Stroller
1 On 31/07/2013 20:54, Stroller wrote:
2 >
3 > On 31 July 2013, at 19:09, Canek Peláez Valdés wrote:
4 >
5 >> On Wed, Jul 31, 2013 at 12:56 PM, Stroller
6 >> <stroller@××××××××××××××××××.uk> wrote:
7 >>>
8 >>> On 31 July 2013, at 18:23, Alan McKinnon wrote:
9 >>>> ...
10 >>>> Whinging about systemd binaries being installed is valid, but whinging
11 >>>> about some data files is not. Anyone who does is letting their OCD show
12 >>>> in ways they really should be keeping private.
13 >>>
14 >>> Hmmmn, it's a bit freaking weird - if I'm understanding correctly some of the statements made here about systemd - that there will be files installed to /etc/init.d/ that don't actually do anything.
15 >>
16 >> If you use systemd, all the files installed in /etc/init.d (except
17 >> functions.sh) don't actually do nothing.
18 >
19 > Right, which is a bit freakin' odd, because on most every previous distro and other *nix system, that's where the system administrator goes to start and stop services.
20 >
21 > If they're not used, in this case, I don't think they should be installed.
22 >
23 > /etc/init.d is wholly different from /usr/share/package-name/examples
24 >
25 > There are many other directories on the system where it's no problem to have some idle, unused, "wasted" files, but /etc/init.d has long been an important directory.
26
27 True, but this one is an oddity. The ebuild for the daemon installs
28 those files, and the ebuild doesn't know when you change your mind about
29 a service manager. If you omitted the init scripts, you get to remerge
30 all your daemon packages just to get them. Yuck. And that's just crappy
31 design.
32
33 You *could* have them stored in /usr/share somewhere and "eselect
34 service-manager" copies them around when changes are made, but that's
35 just extra brittle layers of complexity for no good reason.
36
37 A much better solution is something like a
38 "service <daemon> start|stop|reload" wrapper
39 which RH/Fedora/Ubuntu et al have been doing for like ages. It's not
40 really any different to using rc-update instead of fiddling with classic
41 SysV init symlinks.
42
43 A presumably the sysadmin knows what service manager he is using so
44 knows whether to use classic init scripts or not.
45
46
47 --
48 Alan McKinnon
49 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] gentoo-systemd-only deprecation Stroller <stroller@××××××××××××××××××.uk>