From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d87CG-0004VA-8c for guix-patches@gnu.org; Tue, 09 May 2017 11:37:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d87CA-0002wg-Pp for guix-patches@gnu.org; Tue, 09 May 2017 11:37:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59889) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d87CA-0002wW-Lu for guix-patches@gnu.org; Tue, 09 May 2017 11:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d87CA-0004tj-EZ for guix-patches@gnu.org; Tue, 09 May 2017 11:37:02 -0400 Subject: bug#26830: Allow services to implement a 'reload' action Resent-Message-ID: References: <87d1bjtlpd.fsf@lassieur.org> From: Mathieu Othacehe In-reply-to: <87d1bjtlpd.fsf@lassieur.org> Date: Tue, 09 May 2017 17:37:25 +0200 Message-ID: <86vapa6nyi.fsf@gmail.com> 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: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Cc: 26830@debbugs.gnu.org Hi Clément, > Services do not have to implement 'reload' and if, say, foo-daemon > doesn't implement it, 'herd reload foo-daemon' will return 1 and display > a message saying that foo-deamon does not have an action 'reload'. > That's the reason of the #f default value. > > WDYT? Your whole serie LGTM for me ! I have just one small concern, there is a already a "reload" action on shepherd root service. For instance you can call "herd reload root conf.scm". Maybe it will be unclear for users how reload action differs on root service where it takes an argument and guix services where it does not. You could maybe mention that in the documentation and/or in the code ? Thanks, Mathieu