GNU bug report logs - #33508
[PATCH] gnu: Add ability to restart services on system reconfigure

Previous Next

Package: guix-patches;

Reported by: Carlo Zancanaro <carlo <at> zancanaro.id.au>

Date: Mon, 26 Nov 2018 11:42:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Carlo Zancanaro <carlo <at> zancanaro.id.au>
To: 33508 <at> debbugs.gnu.org
Subject: [bug#33508] [PATCH] gnu: Add ability to restart services on system reconfigure
Date: Mon, 26 Nov 2018 22:41:01 +1100
[Message part 1 (text/plain, inline)]
Hey Guix!

A few months ago I mentioned the idea of adding the ability to 
have services automatically restarted when running "guix system 
reconfigure". These patches are a start on making that happen. 
They're incomplete (in particular, documentation is missing), but 
I'm offering them up for comment.

The broad idea is to add a new field to our guix shepherd 
services: restart-strategy. There are three valid values:

- always: this service is always safe to restart when running 
 reconfigure

- manual: this service may not be safe to restart when running 
 reconfigure - a message will be printed telling the user to 
 restart the service manually, or they can provide the 
 --restart-services flag to reconfigure to automatically restart 
 them

- never: this service is never safe to restart when running 
 reconfigure (eg. udev)

I have added the flag to the guix daemon's shepherd service to 
show how it works. I tested this by changing my substitute servers 
in config.scm, and after running "reconfigure" I saw my updated 
substitute servers in ps without having to run "sudo herd restart 
guix-daemon".

If nobody has any feedback in the next few days then I'll update 
the manual and send through another patch.

Carlo

[0001-gnu-Add-ability-to-restart-services-on-system-reconf.patch (text/x-diff, attachment)]
[0002-system-Add-restart-services-flag-for-reconfigure.patch (text/x-diff, attachment)]
[0003-services-Always-restart-guix-daemon.patch (text/x-diff, attachment)]

This bug report was last modified 2 years and 19 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.