From: Carlo Zancanaro <carlo@zancanaro.id.au>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 22039@debbugs.gnu.org
Subject: bug#22039: [PATCH] 'guix system reconfigure' must start/restart/stop services
Date: Sat, 01 Sep 2018 22:15:50 +1000 [thread overview]
Message-ID: <87va7pza4p.fsf@zancanaro.id.au> (raw)
In-Reply-To: <87sh2tijb2.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 2437 bytes --]
Hey Ludo’,
On Sat, Sep 01 2018, Ludovic Courtès wrote:
> I’d like to make sure we understand the story with ‘EINTR-safe’,
> but after that I’m happy to push a release.
Do you have any thoughts about why it could be failing, or things
I could investigate? I don't know where to start.
>> One possible improvement would be to print out the services
>> that need to be restarted to be upgraded.
>
> Yes, that’d be nice.
I have done this, but now it seems a bit overwhelming how many
services would need to be manually restarted. My modified code
writes a message like this:
To complete the upgrade, restart the following services:
file-systems
user-file-systems
file-system-/boot/efi
file-system-/dev/pts
file-system-/dev/shm
file-system-/gnu/store
file-system-/run/systemd
file-system-/run/user
file-system-/sys/fs/cgroup/elogind
file-system-/sys/fs/cgroup
file-system-/sys/fs/cgroup/cpuset
file-system-/sys/fs/cgroup/cpu
file-system-/sys/fs/cgroup/cpuacct
file-system-/sys/fs/cgroup/memory
file-system-/sys/fs/cgroup/devices
file-system-/sys/fs/cgroup/freezer
file-system-/sys/fs/cgroup/blkio
file-system-/sys/fs/cgroup/perf_event
root-file-system
user-processes
host-name
udev
nscd
guix-daemon
urandom-seed
syslogd
loopback
term-tty6
term-tty5
term-tty4
term-tty3
term-tty2
term-tty1
console-font-tty1
console-font-tty2
console-font-tty3
console-font-tty4
console-font-tty5
console-font-tty6
virtual-terminal
ntpd
dbus-system
elogind
upower-daemon
avahi-daemon
wpa-supplicant
networking
xorg-server
cups
The same list is printed every time on my system, because the
diffing is only on the level of the canonical-name. Most of these
services are being "replaced" by services that are exactly the
same, so they don't really need to be restarted. I don't really
know what to do about this, Even if it were fixed, on an actual
upgrade I assume many of these services would be different, and
thus would be printed legitimately.
I'm also confused why some of these things are services (like
host-name).
I'll send through an updated patch once I've cleaned it up a bit,
but I'm not as positive about it as I was initially.
Carlo
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2018-09-01 12:34 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-28 16:35 bug#22039: 'guix system reconfigure' must start/restart/stop services Ludovic Courtès
2016-01-08 10:04 ` Ludovic Courtès
2016-02-03 21:32 ` Ludovic Courtès
2016-02-03 21:34 ` Thompson, David
2018-01-16 11:17 ` bug#22039: ‘guix system reconfigure’ does not always load new services Ludovic Courtès
2018-08-26 12:15 ` bug#22039: [PATCH] 'guix system reconfigure' must start/restart/stop services Carlo Zancanaro
2018-09-01 10:49 ` Ludovic Courtès
2018-09-01 12:15 ` Carlo Zancanaro [this message]
2018-09-01 12:33 ` Carlo Zancanaro
2018-09-01 17:12 ` Ludovic Courtès
2018-09-02 3:43 ` Carlo Zancanaro
2018-09-02 20:39 ` Ludovic Courtès
2018-09-19 15:47 ` Ludovic Courtès
2018-09-19 20:56 ` Carlo Zancanaro
2018-09-20 9:47 ` Ludovic Courtès
2018-09-20 10:24 ` Carlo Zancanaro
2018-09-20 11:08 ` Ludovic Courtès
2018-09-20 11:50 ` Carlo Zancanaro
2018-09-21 11:58 ` Ludovic Courtès
2018-09-23 8:26 ` Efraim Flashner
2018-09-23 19:53 ` Ludovic Courtès
2018-09-23 23:06 ` Carlo Zancanaro
2018-09-24 8:58 ` Ludovic Courtès
2018-09-24 10:18 ` Carlo Zancanaro
2018-09-26 21:46 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87va7pza4p.fsf@zancanaro.id.au \
--to=carlo@zancanaro.id.au \
--cc=22039@debbugs.gnu.org \
--cc=ludo@gnu.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).