[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shepherd] 01/01: service: Fix arguments passing in the 'restart' action
From: |
Ludovic Courtès |
Subject: |
[shepherd] 01/01: service: Fix arguments passing in the 'restart' action. |
Date: |
Mon, 10 Jul 2017 11:17:14 -0400 (EDT) |
civodul pushed a commit to branch master
in repository shepherd.
commit 244931d5dac6eed1651041e5764b7f23083d74ca
Author: å®‹æ–‡æ¦ <address@hidden>
Date: Sat Jul 8 18:00:34 2017 +0800
service: Fix arguments passing in the 'restart' action.
* modules/shepherd/service.scm (action): Use 'apply' to invoke the 'start'
procedure in the 'restart' action.
Signed-off-by: Ludovic Courtès <address@hidden>
---
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.