From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: bug#27889: Polkit actions are not updated after guix system reconfigure Date: Mon, 31 Jul 2017 23:34:04 +0200 Message-ID: <20170731233404.691437c0@scratchpost.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcILC-0004YD-9n for bug-guix@gnu.org; Mon, 31 Jul 2017 17:35:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcIL9-0006N1-4d for bug-guix@gnu.org; Mon, 31 Jul 2017 17:35:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:33148) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dcIL9-0006Me-0p for bug-guix@gnu.org; Mon, 31 Jul 2017 17:35:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dcIL8-0006vG-He for bug-guix@gnu.org; Mon, 31 Jul 2017 17:35:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 27889@debbugs.gnu.org Cc: Ryan Moe Oops! That's indeed still broken. 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 #:provides '(apache-2.0 apache httpd) #:requires '() #:start (...) #:stop (...) #:actions (make-actions (restart (...))))) ^^^^^^^^^^^^^ But the Guix 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?