public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Olivier Crête" <tester@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] rfc: locations of binaries and separate /usr
Date: Thu, 05 Jan 2012 21:15:41 -0500	[thread overview]
Message-ID: <1325816141.2385.14.camel@TesterTop4> (raw)
In-Reply-To: <4F0643D8.40009@gentoo.org>

[-- Attachment #1: Type: text/plain, Size: 2888 bytes --]

On Fri, 2012-01-06 at 08:44 +0800, Patrick Lauer wrote:
> On 01/06/12 05:26, Olivier Crête wrote:
> [snip]
> > The only thing I see them sacrificing is loose coupling, they provide
> > more functionality than any other init system, more correctness
> > (seriously, did you ever read most init scripts out there?), more well
> > defined behavior (all systemd systems boot exactly the same), more
> > stability (I'll claim that Lennart's C is better than any of the
> > boot-time shell scripts I've seen) and well understandability depends
> > who much you can understand C. Probably a bit less understandable for
> > sysadmins, but since they can just play with config files, it's
> > probably easier to understand in the end (and much less prone to
> > breaking than mucking around shell scripts). 
> As you apparently have no idea what a sysadmin does I'd appreciate it if
> people like you didn't try to guess what would make things better and
> instead listened to people that have more than their desktop to run.
> (Hint: It's not pressing reset buttons)

I know what they do.. play in random scripts until whatever they're
trying to hack together it seems to work, because oh well, its just a
one time thing..  and then when stuff breaks they call Red Hat's support
line.

> Given the choice between a single line of shell ( cat "$urandom_seed" >
> /dev/urandom ) or 145 lines of undocumented C (which, if naively
> modified by me, might just make systemd segfault) ... there is no choice.

Actually, you don't have to do that, systemd does it for you and takes
care of all the annoying details [1].

That said, you can trivially disable systemd-random-seed-save.service
and systemd-random-seed-load.service and instead write a unit file that
runs whatever you want. You don't HAVE to do any C to run stuff from
systemd, but it does provide many things written in C that are much more
solid than the shell equivalents.

> I do agree with you on one point - most init scripts are really bad
> code, but that doesn't mean shell is bad, it means that you need to
> educate people and file bugs. I've laughed at SLES' /etc/bashrc, I read
> most of upstart and wondered how ... why ... is it can be drunk tiem?
> Still that doesn't mean that rewriting it in bad C is in any way more
> agreeable, and you just made debugging exquisitely painful. Yey.

The big reason for C vs shell scripts is that the type of people who
write them are not the same.. The type of people who write shell scripts
tend to hack together stuff until it works. The people who write C tend
to think about the problem for a long time and then write a complete
solution that tries to take into account all of the possible error
scenarios.

[1] http://cgit.freedesktop.org/systemd/tree/src/random-seed.c

-- 
Olivier Crête
tester@gentoo.org
Gentoo Developer

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2012-01-06  2:16 UTC|newest]

Thread overview: 224+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-01  1:59 [gentoo-dev] rfc: locations of binaries and separate /usr William Hubbs
2012-01-01  6:16 ` [gentoo-dev] " Ryan Hill
2012-01-02 17:54   ` Alexis Ballier
2012-01-02 18:30     ` Michał Górny
2012-01-01  7:12 ` [gentoo-dev] " Olivier Crête
2012-01-01  7:33   ` Matthew Thode
2012-01-01 20:09     ` Olivier Crête
2012-01-01 20:51       ` Dale
2012-01-01 21:49         ` Olivier Crête
2012-01-05  3:12           ` Jeroen Roovers
2012-01-05  3:43             ` Dale
2012-01-01 20:18     ` Michał Górny
2012-01-01  7:33   ` Patrick Lauer
2012-01-01 20:21     ` Olivier Crête
2012-01-01 20:23       ` Ciaran McCreesh
2012-01-01 21:50         ` Olivier Crête
2012-01-02  8:41           ` Eray Aslan
2012-01-03 18:50             ` Olivier Crête
2012-01-03 18:54               ` Ciaran McCreesh
2012-01-03 19:07                 ` Michał Górny
2012-01-03 19:02               ` William Hubbs
2012-01-03 19:12                 ` Fabian Groffen
2012-01-03 20:01                   ` William Hubbs
2012-01-03 21:22                     ` Fabian Groffen
2012-01-03 23:09                       ` William Hubbs
2012-01-03 23:27                         ` Michał Górny
2012-01-04  0:47                         ` Thomas Sachau
2012-01-04  8:17                           ` Michał Górny
2012-01-04 12:06                             ` Thomas Sachau
2012-01-04 15:37                               ` Michał Górny
2012-01-04 16:33                                 ` Fabian Groffen
2012-01-04 16:47                                   ` Michał Górny
2012-01-04 17:12                                     ` Ulrich Mueller
2012-01-04 17:32                                       ` Olivier Crête
2012-01-04 18:26                                         ` Marc Schiffbauer
2012-01-04 20:12                                           ` Eray Aslan
2012-01-05  2:40                                         ` Zac Medico
2012-01-07  3:10                                           ` Michael Weber
2012-01-07  6:58                                             ` Zac Medico
2012-01-07  9:35                                               ` Michał Górny
2012-01-07 20:20                                               ` Michael Weber
2012-01-04 18:27                                       ` Kent Fredric
2012-01-04 18:47                                         ` Michał Górny
2012-01-04 18:51                                         ` Olivier Crête
2012-01-04 19:09                                           ` Fabian Groffen
2012-01-07  0:41                                           ` Walter Dnes
2012-01-07  0:59                                             ` Olivier Crête
2012-01-07  1:10                                               ` Matthew Thode
2012-01-07  9:41                                             ` Michał Górny
2012-01-04 18:55                                         ` Rich Freeman
2012-01-05 19:30                                         ` William Hubbs
2012-01-05 20:08                                           ` Ciaran McCreesh
2012-01-05 20:40                                             ` Rich Freeman
2012-01-05 20:44                                             ` Sven Vermeulen
2012-01-05 21:02                                             ` Olivier Crête
2012-01-05 21:09                                               ` Ciaran McCreesh
2012-01-05 21:26                                                 ` Olivier Crête
2012-01-06  0:44                                                   ` Patrick Lauer
2012-01-06  0:57                                                     ` Arun Raghavan
2012-01-06  2:15                                                     ` Olivier Crête [this message]
2012-01-06  2:58                                                       ` Marc Schiffbauer
2012-01-06  8:16                                                       ` Alec Warner
2012-01-06 15:28                                                         ` Ian Stakenvicius
2012-01-06  8:55                                                       ` Fabian Groffen
2012-01-05 22:06                                                 ` Michał Górny
2012-01-05 22:08                                                   ` Ciaran McCreesh
2012-01-05 22:36                                             ` Alex Alexander
2012-01-06 13:35                                               ` Rich Freeman
2012-01-06 16:07                                                 ` Alex Alexander
2012-01-07 23:47                                                   ` Lars Wendler
2012-01-08  9:33                                                     ` Michał Górny
2012-01-10 18:14                                                       ` Enrico Weigelt
2012-01-10 18:46                                                         ` Michał Górny
2012-01-10 18:56                                                           ` Dale
2012-01-10 19:03                                                             ` Michał Górny
2012-01-10 19:04                                                               ` Ciaran McCreesh
2012-01-10 22:40                                                               ` Dale
2012-01-11  7:41                                                                 ` Michał Górny
2012-01-11  8:38                                                                   ` Christopher Head
2012-01-11  8:44                                                                   ` Ulrich Mueller
2012-01-11 17:03                                                                     ` Michał Górny
2012-01-11 17:04                                                                       ` Matthew Thode
2012-01-11 16:34                                                                   ` Dale
2012-01-11 17:01                                                                     ` Michał Górny
2012-01-11 17:13                                                                       ` Dale
2012-01-11 17:26                                                                       ` Nirbheek Chauhan
2012-01-11 18:24                                                                       ` Alec Warner
2012-01-11 18:42                                                                         ` Dale
2012-01-17 22:15                                                               ` [gentoo-dev] " Steven J Long
2012-01-17 22:29                                                                 ` Rich Freeman
2012-01-10 19:08                                                             ` [gentoo-dev] " Rich Freeman
2012-01-10 22:49                                                               ` Dale
2012-01-10 19:09                                                             ` Hinnerk van Bruinehsen
2012-01-10 22:55                                                               ` Dale
2012-01-17 22:00                                                           ` [gentoo-dev] " Steven J Long
2012-01-18  3:38                                                           ` [gentoo-dev] " Dale
2012-01-18  4:18                                                             ` Mike Gilbert
2012-01-18  5:57                                                               ` Dale
2012-01-18  7:02                                                             ` Michał Górny
2012-01-18  7:20                                                               ` Dale
2012-01-18 13:36                                                                 ` Michał Górny
2012-01-21 12:28                                                                   ` Dale
2012-01-21 14:57                                                                     ` Michał Górny
2012-01-21 21:34                                                                       ` Dale
2012-01-21 21:50                                                                         ` Zac Medico
2012-01-21 23:45                                                                           ` Dale
2012-01-22  0:12                                                                             ` Zac Medico
2012-01-21 22:01                                                                         ` Michał Górny
2012-01-21 23:43                                                                           ` Dale
2012-01-04 18:50                                       ` Michał Górny
2012-01-04 19:00                                         ` Fabian Groffen
2012-01-04 19:28                                           ` Michał Górny
2012-01-04 19:32                                             ` Fabian Groffen
2012-01-04 18:48                                 ` Thomas Sachau
2012-01-04 19:26                                   ` Michał Górny
2012-01-04 19:36                                     ` Fabian Groffen
2012-01-03 19:19                 ` Olivier Crête
2012-01-03 19:35                   ` Rich Freeman
2012-01-03 19:47                     ` Nirbheek Chauhan
2012-01-03 20:15                     ` Olivier Crête
2012-01-03 19:39                   ` William Hubbs
2012-01-03 19:47                     ` Fabian Groffen
2012-01-03 20:32               ` Eray Aslan
2012-01-06 18:26     ` Enrico Weigelt
2012-01-01 16:56   ` William Hubbs
2012-01-01 18:40   ` Ciaran McCreesh
2012-01-01 22:39   ` Robin H. Johnson
2012-01-01  8:53 ` Sven Vermeulen
2012-01-01  9:09   ` Nirbheek Chauhan
2012-01-02 18:41     ` Michał Górny
2012-01-01  9:45   ` Dale
2012-01-01 13:44     ` Rich Freeman
2012-01-01 14:05       ` Dale
2012-01-01 20:21   ` Olivier Crête
2012-01-02 11:47     ` Sven Vermeulen
2012-01-02 12:58       ` Rich Freeman
2012-01-02 13:31         ` Kent Fredric
2012-01-02 16:01         ` Michał Górny
2012-01-03 22:47     ` Sven Vermeulen
2012-01-04  0:32       ` Olivier Crête
2012-01-02 18:43   ` Michał Górny
2012-01-04 13:50     ` [gentoo-dev] " Steven J Long
2012-01-04 13:54       ` Rich Freeman
2012-01-04 15:19         ` [gentoo-dev] " Steven J Long
2012-01-04 15:24           ` Rich Freeman
2012-01-04 18:16           ` Robin H. Johnson
2012-01-04 15:51       ` [gentoo-dev] " Michał Górny
2012-01-04 15:54         ` Ciaran McCreesh
2012-01-04 16:02           ` Michał Górny
2012-01-04 17:40           ` Olivier Crête
2012-01-04 18:06             ` Ciaran McCreesh
2012-01-04 18:30             ` Marc Schiffbauer
2012-01-04 18:53               ` Olivier Crête
2012-01-04 20:45                 ` Marc Schiffbauer
2012-01-04 21:55                   ` Olivier Crête
2012-01-05  3:24                     ` Marc Schiffbauer
2012-01-05  4:58                   ` Duncan
2012-01-06 18:10                 ` Enrico Weigelt
2012-01-05  8:26               ` Michał Górny
2012-01-05 11:08                 ` Marc Schiffbauer
2012-01-05 14:30                   ` Olivier Crête
2012-01-05 14:31                   ` Olivier Crête
2012-01-05 17:12                     ` Duncan
2012-01-05 18:17                       ` Michał Górny
2012-01-06 18:08             ` Enrico Weigelt
2012-01-03 15:53   ` [gentoo-dev] " Ian Stakenvicius
2012-01-03 16:08     ` G.Wolfe Woodbury
2012-01-03 16:40       ` Michał Górny
2012-01-03 17:56       ` Rich Freeman
2012-01-04  9:07       ` [gentoo-dev] " Nicolas Sebrecht
2012-01-03 17:45     ` Duncan
2012-01-03 18:18       ` Ian Stakenvicius
2012-01-03 23:58         ` Duncan
2012-01-01  9:23 ` Duncan
2012-01-01 10:15   ` Zac Medico
2012-01-01 17:54     ` Duncan
2012-01-03 16:03     ` Ian Stakenvicius
2012-01-03 16:51       ` William Hubbs
2012-01-03 17:00         ` Fabian Groffen
2012-01-03 17:03         ` Ian Stakenvicius
2012-01-03 17:35           ` Duncan
2012-01-03 17:59             ` William Hubbs
2012-01-01 18:32   ` William Hubbs
2012-01-01 18:46     ` William Hubbs
2012-01-01 20:17       ` Olivier Crête
2012-01-02  5:39         ` Duncan
2012-01-02  6:44           ` Zac Medico
2012-01-02 14:48           ` William Hubbs
2012-01-01 17:54 ` [gentoo-dev] " Michał Górny
2012-01-02 17:54   ` William Hubbs
2012-01-02 18:37     ` Michał Górny
2012-01-02 18:46       ` William Hubbs
2012-01-03 16:18     ` Ian Stakenvicius
2012-01-02  6:24 ` Nguyen Thai Ngoc Duy
2012-01-02  9:45   ` Michał Górny
2012-01-02 17:03   ` William Hubbs
2012-01-03  9:51 ` Walter Dnes
2012-01-03 15:10   ` William Hubbs
2012-01-03 16:40     ` Ian Stakenvicius
2012-01-03 18:02       ` [gentoo-dev] " Duncan
2012-01-03 18:36       ` [gentoo-dev] " William Hubbs
2012-01-03 19:19         ` Olivier Crête
2012-01-03 19:30           ` Fabian Groffen
2012-01-03 19:28         ` Rich Freeman
2012-01-03 19:39         ` Nirbheek Chauhan
2012-01-04 12:58   ` Arun Raghavan
2012-01-04 13:13     ` Rich Freeman
2012-01-04 13:23       ` Nirbheek Chauhan
2012-01-06 17:50 ` Enrico Weigelt
2012-01-06 18:25   ` Michał Górny
2012-01-06 18:41     ` Enrico Weigelt
2012-01-06 19:05       ` Michał Górny
2012-01-06 19:21         ` Enrico Weigelt
2012-01-12 15:29         ` Ralph Sennhauser
2012-01-12 16:06           ` Alec Warner
2012-01-07  1:08       ` Walter Dnes
2012-01-07 19:01         ` Enrico Weigelt
2012-01-08 11:48           ` Walter Dnes
2012-01-08 22:58 ` Michael Weber
2012-01-09  7:20   ` Zac Medico
2012-01-09  8:22   ` Michał Górny
2012-01-09 10:30     ` Alec Warner
2012-02-04 16:31 ` Alexey Shvetsov
2012-02-04 17:27   ` Rich Freeman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1325816141.2385.14.camel@TesterTop4 \
    --to=tester@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox