unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Heads-up: ‘guix system reconfigure’ reloads services
@ 2016-02-03 22:03 Ludovic Courtès
  2016-02-05 13:16 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2016-02-03 22:03 UTC (permalink / raw)
  To: Guix-devel

Hi!

If you haven’t been following <http://bugs.gnu.org/22039>, ‘guix system
reconfigure’ is now able to dynamically load/start new system services,
unless they are already running.

This works by talking to shepherd in a way similar to what ‘herd’ does,
querying the list of current services and then dynamically loading new
services in there (the interesting part ;-)).

This is very conservative, so it shouldn’t bring your system down.  :-)
Errors in service definitions are caught when they are loaded.

Anyway, if you notice something fishy, please report it, including info
on the initial and target state of system services.

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Heads-up: ‘guix system reconfigure’ reloads services
  2016-02-03 22:03 Heads-up: ‘guix system reconfigure’ reloads services Ludovic Courtès
@ 2016-02-05 13:16 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2016-02-05 13:16 UTC (permalink / raw)
  To: Guix-devel

ludo@gnu.org (Ludovic Courtès) skribis:

> If you haven’t been following <http://bugs.gnu.org/22039>, ‘guix system
> reconfigure’ is now able to dynamically load/start new system services,
> unless they are already running.

On IRC calher & Jookia reported that, when upgrading from dmd, this
would cause this kind of error:

--8<---------------cut here---------------start------------->8---
populating /etc from /gnu/store/z7x13js9dpinlrq92l1d5hnfn2gn765s-etc...
usermod: no changes
usermod: no changes
usermod: no changes
usermod: no changes
usermod: no changes
usermod: no changes
usermod: no changes
usermod: no changes
usermod: no changes
making '/gnu/store/7z97a0h5gyqkxil4qdnknii00xva6brz-system' the current system...
guix system: warning: cannot connect to /var/run/shepherd/socket: No such file or directory
Backtrace:
In ice-9/boot-9.scm:
 157: 16 [catch #t #<catch-closure 18977a0> ...]
In unknown file:
   ?: 15 [apply-smob/1 #<catch-closure 18977a0>]
In ice-9/boot-9.scm:
  63: 14 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 13 [eval # #]
In ice-9/boot-9.scm:
2401: 12 [save-module-excursion #<procedure 18b4940 at ice-9/boot-9.scm:4045:3 ()>]
4050: 11 [#<procedure 18b4940 at ice-9/boot-9.scm:4045:3 ()>]
1724: 10 [%start-stack load-stack ...]
1729: 9 [#<procedure 18ccea0 ()>]
In unknown file:
   ?: 8 [primitive-load "/gnu/store/24mbii9wjlyzfzsqwfmcvz6vz2fv5n6g-guix-0.9.0.c3f29bc/bin/.guix-real"]
In guix/ui.scm:
1177: 7 [run-guix-command system "reconfigure" "/etc/config.scm"]
In ice-9/boot-9.scm:
 157: 6 [catch srfi-34 #<procedure 4090de0 at guix/ui.scm:413:2 ()> ...]
 157: 5 [catch system-error ...]
In guix/scripts/system.scm:
 689: 4 [process-action reconfigure ("/etc/config.scm") ...]
In guix/store.scm:
1061: 3 [run-with-store # ...]
In guix/scripts/system.scm:
 508: 2 [#<procedure 4c10f00 at guix/scripts/system.scm:508:13 (state)> #]
 293: 1 [#<procedure 7117300 at guix/scripts/system.scm:274:2 (state)> #]
 233: 0 [upgrade-shepherd-services #]

guix/scripts/system.scm:233:2: In procedure upgrade-shepherd-services:
guix/scripts/system.scm:233:2: Throw to key `vm-error' with args `(vm-run "Too few values returned to continuation" ())'.
--8<---------------cut here---------------end--------------->8---

This is fixed by commit 1d6b7d5.

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-05 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-03 22:03 Heads-up: ‘guix system reconfigure’ reloads services Ludovic Courtès
2016-02-05 13:16 ` Ludovic Courtès

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).