supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Guillermo <gdiazhartusch@gmail.com>
To: Supervision <supervision@list.skarnet.org>
Subject: Re: nosh version 1.37
Date: Sun, 18 Feb 2018 18:23:05 -0300	[thread overview]
Message-ID: <CADQ2Nw_YTvxTviN1-FZEPNwMN--jaE9kaaFBt23E6m8jmqxR5g@mail.gmail.com> (raw)
In-Reply-To: <5e8454f7-8b8d-ae9f-5aca-3b1b5737f81a@NTLWorld.COM>

2018-02-18 3:49 GMT-03:00 Jonathan de Boyne Pollard:
>
> The nosh package is now up to version 1.37 .
> [...]
>    Per-user management has been augmented, finally fixing the problem
>    of |system-control| locating the per-user manager by giving the
>    per-user manager an optional listening FIFO open file descriptor,
>    which it uses to listen for user-wide state change commands.
>    |system-control --user| |halt|/|normal|/|sysinit|/&c. now send
>    commands via this FIFO, and each user's |user-services@/username/|
>    service bundle now uses |fifo-listen| to set up the FIFO and creates
>    the |per-user-manager/| subdirectory in |/run/user|.

\O/ \O/ \O/

On the other hand, all those new .do scripts that generate systemd
unit files and configuration files using the read_os shell function
fail on Gentoo :-P

redo-ifchange[2]: ERROR: services/dbus-broker.service: Not done.
redo-ifchange[2]: ERROR: services/dbus-daemon.service: Not done.
redo-ifchange[2]: ERROR: services/system-wide.conf: Not done.
redo-ifchange[2]: ERROR: systemd/service-manager.socket: Not done.
redo-ifchange[2]: ERROR: convert/per-user/at-spi-dbus-bus.service: Not done.
redo-ifchange[2]: ERROR: convert/per-user/gconfd.service: Not done.
redo-ifchange[2]: ERROR: convert/per-user/per-user.conf: Not done.

'read_os ID' returns 'gentoo' for Gentoo's /etc/os-release, and
'read_os VERSION_ID' returns nothing (it is a rolling release
distribution), so this always matches the

*)       ext=who ;;

lines, making the redo-ifchange invocation fail with either "Don't
know what to use to build this" or "Cannot find .do file to use". Or
making it call convert/per-user/default.do and *then* failing. So what
do I do, should I patch the .do scripts to include a 'gentoo:*)' line?

This is going to happen for every [GNU/]Linux distribution that is not
Debian, Arch, CentOS or RHEL. It does not... uh... look very portable
:/

Additionally, the convert/per-user/*.do scripts' 'read_os' function
calls 'exec' via absolute path /bin/exec instead of relative path
../../exec, which is not going to work if nosh isn't already installed
(chicken and egg). On my computer that results in accidentally calling
execline's exec program, which is even funnier.

Thanks for your attention.
G.


  reply	other threads:[~2018-02-18 21:23 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <54430B41.3010301@NTLWorld.com>
     [not found] ` <54B86FD5.3090203@NTLWorld.com>
     [not found]   ` <554E53EF.4080600@NTLWorld.com>
2015-05-09 23:09     ` nosh version 1.14 Jonathan de Boyne Pollard
2015-06-01  0:02       ` nosh version 1.16 Jonathan de Boyne Pollard
2015-06-28 15:19         ` redo version 1.2 Jonathan de Boyne Pollard
2018-02-18  6:39           ` redo version 1.4 Jonathan de Boyne Pollard via freebsd-hackers
2015-06-28 16:39         ` nosh version 1.17 Jonathan de Boyne Pollard
2015-06-28 16:55           ` pflog(8) manual page bug Jonathan de Boyne Pollard
2015-06-28 20:55             ` Warren Block
2015-08-20 13:01           ` nosh version 1.18 Jonathan de Boyne Pollard
2015-08-22 18:04             ` nosh version 1.19 Jonathan de Boyne Pollard
     [not found]               ` <CADQ2Nw-506S3Gm4s40t+WzJu3Wzpwp=wPBWCFoQGZ2yrctCM_w@mail.gmail.com>
2015-09-28  1:05                 ` nosh version 1.20 Jonathan de Boyne Pollard
2015-09-28  1:33                   ` Joe Maloney
2015-09-28  7:27                     ` Jonathan de Boyne Pollard
2015-10-05  5:39                   ` nosh version 1.21 Jonathan de Boyne Pollard
2015-11-02  2:15                     ` nosh version 1.22 Jonathan de Boyne Pollard
2015-12-17 13:50                       ` nosh version 1.23 Jonathan de Boyne Pollard
2016-01-13  9:25                         ` nosh version 1.24 Jonathan de Boyne Pollard
2016-02-01  1:03                           ` nosh version 1.25 Jonathan de Boyne Pollard
2016-05-06 23:19                             ` nosh version 1.27 Jonathan de Boyne Pollard
2016-08-06 17:30                               ` nosh version 1.28 Jonathan de Boyne Pollard
     [not found]                                 ` <a1646fa5-e64c-5b2d-b057-aa347d1f30a1@freebsd.org>
2016-08-21 11:04                                   ` Jonathan de Boyne Pollard
2016-08-30 15:58                                     ` Joe Nosay
     [not found]                                 ` <0c339dcb-d09b-f234-d37f-9521d97146b1@NTLWorld.com>
     [not found]                                   ` <d9dddf06-257f-2f5e-c7dd-99cfd6aba187@NTLWorld.com>
     [not found]                                     ` <CADQ2Nw8YbeHp-yOUxTBXn6H8_OrU74ab1nb5=gc-+xeBL4FWFw@mail.gmail.com>
     [not found]                                       ` <159edb67-0288-a07e-c2cb-76574d0d2b98@NTLWorld.com>
     [not found]                                         ` <CADQ2Nw-XksEtP_wrXtaRFKw0yM=A-0okfXxFOpyDiCQGptQEww@mail.gmail.com>
     [not found]                                           ` <5769980e-cdc3-b802-b704-fdb8d0ce3f8f@NTLWorld.com>
     [not found]                                             ` <CADQ2Nw95KwkwDDErc_wsLrg=rHjhKHRsfseFPhA9avS0siu+5Q@mail.gmail.com>
2016-12-03 11:33                                               ` nosh version 1.29 Jonathan de Boyne Pollard
2016-12-03 11:41                                                 ` Jonathan de Boyne Pollard
2016-12-31 23:53 ` nosh version 1.30 Jonathan de Boyne Pollard
2017-01-14 11:26   ` nosh version 1.31 Jonathan de Boyne Pollard
2017-01-30  9:09     ` nosh version 1.32 Jonathan de Boyne Pollard
2017-04-09 19:52       ` nosh version 1.33 Jonathan de Boyne Pollard
2017-07-05 20:41         ` nosh version 1.34 Jonathan de Boyne Pollard
2017-09-10 10:43           ` nosh version 1.35 Jonathan de Boyne Pollard
2017-12-11  8:03             ` nosh version 1.36 Jonathan de Boyne Pollard
2018-02-18  6:49   ` nosh version 1.37 Jonathan de Boyne Pollard via freebsd-hackers
2018-02-18 21:23     ` Guillermo [this message]
2018-02-18 23:05       ` Jonathan de Boyne Pollard
2018-02-19  3:12         ` Guillermo
2018-02-19  5:10           ` Jonathan de Boyne Pollard
2018-02-20 19:13       ` Jonathan de Boyne Pollard
2018-02-21  1:21         ` Guillermo
2018-02-21  7:53           ` Jonathan de Boyne Pollard
2019-01-23  4:51     ` nosh version 1.39 Jonathan de Boyne Pollard
2019-03-20 10:21       ` nosh version 1.40 Jonathan de Boyne Pollard

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=CADQ2Nw_YTvxTviN1-FZEPNwMN--jaE9kaaFBt23E6m8jmqxR5g@mail.gmail.com \
    --to=gdiazhartusch@gmail.com \
    --cc=supervision@list.skarnet.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;
as well as URLs for NNTP newsgroup(s).