1 |
On 12/21/2016 08:28 AM, Rich Freeman wrote: |
2 |
> On Wed, Dec 21, 2016 at 8:36 AM, Corbin Bird <corbinbird@×××××××.net> wrote: |
3 |
>> The old manual method of configuration is extremely flexible, you can |
4 |
>> get the "who-knows-where-it-came-from-component" to work. The new |
5 |
>> "automagic" of udev / systemd .... forget it. At least with script based |
6 |
>> init systems I could change the run level to fix Xorg problems. |
7 |
> udev and systemd operate based on text configuration files that are |
8 |
> declarative in nature. |
9 |
> |
10 |
> You can certainly change the "run level" in systemd (what you'd call a |
11 |
> runlevel in openrc would be a target in systemd). You can even pass |
12 |
> the default target on the kernel command line, or change the default |
13 |
> target in /etc. As with openrc they aren't numbered and you aren't |
14 |
> limited to any particular number of them. There are some standard |
15 |
> ones out of the box, like multi-user, emergency, getty, basic, etc. |
16 |
> |
17 |
>> The systemd configuration files are designed for programmers, not |
18 |
>> technicians. And their is a HUGE difference between "programmers" and |
19 |
>> "technicians". Different aptitudes, different skills. The old .conf |
20 |
>> files, technicians can easily handle. Requiring everyone to be a |
21 |
>> programmer is a really bad idea. |
22 |
>> |
23 |
> The only "configuration" files openrc supports for services are shell |
24 |
> scripts, as opposed to declarative configuration files used by |
25 |
> systemd. Now, openrc init.d shell scripts might source configuration |
26 |
> from some text file in /etc/conf.d, but there is nothing that prevents |
27 |
> systemd units from doing the same. On Gentoo we stick the settings in |
28 |
> drop-in files instead, but these are no more complex. |
29 |
> |
30 |
> Here is an example of a Gentoo systemd drop-in: |
31 |
> /etc/systemd/system/ntpdate.service.d/00gentoo.conf |
32 |
> [Service] |
33 |
> Environment="SERVER=0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org |
34 |
> 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org" |
35 |
> |
36 |
> |
37 |
> That hardly requires programming to understand. |
38 |
> |
39 |
> |
40 |
> And here is the entire ntpdate unit file: |
41 |
> /usr/lib/systemd/system/ntpdate.service |
42 |
> [Unit] |
43 |
> Description=Set time via NTP using ntpdate |
44 |
> After=network-online.target nss-lookup.target |
45 |
> Before=time-sync.target |
46 |
> Wants=time-sync.target |
47 |
> Conflicts=systemd-timesyncd.service |
48 |
> |
49 |
> [Service] |
50 |
> Type=oneshot |
51 |
> ExecStart=/usr/sbin/ntpdate -b -u $SERVER |
52 |
> RemainAfterExit=yes |
53 |
> |
54 |
> [Install] |
55 |
> WantedBy=multi-user.target |
56 |
> |
57 |
> |
58 |
> No programming there either. |
59 |
> |
60 |
> Most of the stuff that is hard to understand in the file are the |
61 |
> dependencies, and that is just because you need to learn the |
62 |
> terminology that systemd uses, though most of that is straightforward. |
63 |
> The After= line is roughly equivalent to "use net dns" in openrc, |
64 |
> though systemd has a lot more virtuals defined out of the box and |
65 |
> they're more granular. For example, systemd distinguishes between an |
66 |
> interface existing, and an interface having an IP/etc, while on openrc |
67 |
> we have just one virtual that covers the latter. |
68 |
> |
69 |
> I know, it almost sounds like the systemd design is intended to |
70 |
> support running a diverse service ecosystem. Go figure... |
71 |
> |
72 |
|
73 |
I noticed what you avoided addressing. |
74 |
|
75 |
The mailing list is not for "flame wars". I will not respond to any |
76 |
further comments from you. |
77 |
|
78 |
Have a nice day. |