unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: 宋文武 <iyzsong@member.fsf.org>
To: guix-devel@gnu.org
Subject: [PATCH] service: Fix arguments passing in the 'restart' action.
Date: Sat,  8 Jul 2017 18:00:34 +0800	[thread overview]
Message-ID: <20170708100034.8010-1-iyzsong@member.fsf.org> (raw)

* modules/shepherd/service.scm (action): Use 'apply' to invoke the 'start'
procedure in the 'restart' action.
---
 modules/shepherd/service.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/shepherd/service.scm b/modules/shepherd/service.scm
index 26f29aa..72fbc3d 100644
--- a/modules/shepherd/service.scm
+++ b/modules/shepherd/service.scm
@@ -398,7 +398,7 @@ wire."
          (if running
              (stop obj)
              (local-output "~a was not running." (canonical-name obj)))
-         (start obj args)))
+         (apply start obj args)))
       ((status)
        ;; Return the service itself.  It is automatically converted to an sexp
        ;; via 'result->sexp' and sent to the client.
-- 
2.12.2

             reply	other threads:[~2017-07-08 10:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-08 10:00 宋文武 [this message]
2017-07-08 11:46 ` [PATCH] service: Fix arguments passing in the 'restart' action Danny Milosavljevic
2017-07-10 15:17 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170708100034.8010-1-iyzsong@member.fsf.org \
    --to=iyzsong@member.fsf.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).