From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdMxv-00038k-MY for guix-patches@gnu.org; Wed, 11 Jul 2018 17:48:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdMxu-00016r-Sv for guix-patches@gnu.org; Wed, 11 Jul 2018 17:48:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48099) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdMxu-00016i-P8 for guix-patches@gnu.org; Wed, 11 Jul 2018 17:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fdMxu-0004xv-FA for guix-patches@gnu.org; Wed, 11 Jul 2018 17:48:02 -0400 Subject: [bug#32128] [PATCH 0/2] Support custom actions for Shepherd services Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdMxU-00038M-0G for guix-patches@gnu.org; Wed, 11 Jul 2018 17:47:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdMxT-0000yl-3B for guix-patches@gnu.org; Wed, 11 Jul 2018 17:47:36 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Wed, 11 Jul 2018 23:47:17 +0200 Message-Id: <20180711214717.29955-1-ludo@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32128@debbugs.gnu.org Hello Guix! This is a long-awaited feature—nothing fancy, but it can certainly be useful as illustrated by the ‘herd schedule mcron’ example below. I suppose we can add actions for hot-swapping and reconfiguration of services that support it, such as nginx: . Feedback welcome! Ludo’. Ludovic Courtès (2): services: shepherd: Support custom actions. services: mcron: Add 'schedule' action. doc/guix.texi | 74 +++++++++++++++++++++++++++++++++++++++ gnu/services/herd.scm | 3 ++ gnu/services/mcron.scm | 67 ++++++++++++++++++++++++++--------- gnu/services/shepherd.scm | 23 +++++++++++- gnu/tests/base.scm | 7 ++++ 5 files changed, 156 insertions(+), 18 deletions(-) -- 2.18.0