bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27889: Polkit actions are not updated after guix system reconfigure


From: Ludovic Courtès
Subject: bug#27889: Polkit actions are not updated after guix system reconfigure
Date: Tue, 01 Aug 2017 12:03:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Hello,

Danny Milosavljevic <address@hidden> skribis:

> But gnu/services/shepherd.scm shepherd-service-file could be extended to 
> provide a "restart" action (shepherd itself already supports it).
>
> The general format for shepherd is:
>
> (register-services
>   (make <service>
>         #:provides '(apache-2.0 apache httpd)
>         #:requires '()
>         #:start (...)
>         #:stop (...)
>         #:actions (make-actions
>                    (restart (...)))))
>                     ^^^^^^^^^^^^^
>
> But the Guix <shepherd-service> record, which is the source that is 
> eventually compiled to the above, neither has an "actions" slot nor a 
> "restart" slot.  It would have to be extended with one.
>
> I wonder whether it would make sense to make shepherd automatically default 
> to a SIGHUP restart action for daemonized processes instead, though.  It's 
> not exactly rare for daemons to provide that.
>
> Also, does "guix system reconfigure" already call this restart action if it's 
> present?

Not yet, but it should.  I think the patches at
<https://bugs.gnu.org/26830> would be sufficient if the action boils
down to sending SIGHUP.  Perhaps time to revive that patch set!

Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]