[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shepherd] 11/13: service: Remove unused 'make-init.d-service'.
From: |
Ludovic Courtès |
Subject: |
[shepherd] 11/13: service: Remove unused 'make-init.d-service'. |
Date: |
Fri, 25 Mar 2022 17:59:01 -0400 (EDT) |
civodul pushed a commit to branch wip-fibers
in repository shepherd.
commit 17d5cd19b75e618640ef84a355750c909336d098
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Mar 25 09:54:55 2022 +0100
service: Remove unused 'make-init.d-service'.
* modules/shepherd/service.scm (make-init.d-service): Remove.
---
modules/shepherd/service.scm | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/modules/shepherd/service.scm b/modules/shepherd/service.scm
index 1ccb18d..e21e6bb 100644
--- a/modules/shepherd/service.scm
+++ b/modules/shepherd/service.scm
@@ -87,7 +87,6 @@
read-pid-file
make-system-constructor
make-system-destructor
- make-init.d-service
check-for-dead-services
root-service
@@ -1105,16 +1104,6 @@ as argument, where SIGNAL defaults to `SIGTERM'."
(lambda (ignored . args)
(not (zero? (status:exit-val (system (apply string-append command)))))))
-;; Create service with constructor and destructor being set to typical
-;; init.d scripts.
-(define (make-init.d-service name . stuff)
- (let ((cmd (string-append "/etc/init.d/" name)))
- (apply make <service>
- #:provides (list (string->symbol name))
- #:start (make-system-constructor cmd " start")
- #:stop (make-system-destructor cmd " stop")
- stuff)))
-
;; A group of service-names which can be provided (i.e. services
;; providing them get started) and unprovided (same for stopping)
;; together. Not comparable with a real runlevel at all, but can be
- [shepherd] 09/13: service: 'make-forkexec-constructor' spawns a logging fiber., (continued)
- [shepherd] 09/13: service: 'make-forkexec-constructor' spawns a logging fiber., Ludovic Courtès, 2022/03/25
- [shepherd] 10/13: doc: Fix inetutils cross-reference., Ludovic Courtès, 2022/03/25
- [shepherd] 12/13: service: Add the #:transient? slot., Ludovic Courtès, 2022/03/25
- [shepherd] 01/13: shepherd: Factorize out the main loop., Ludovic Courtès, 2022/03/25
- [shepherd] 02/13: build: Drop support for Guile 2.0., Ludovic Courtès, 2022/03/25
- [shepherd] 03/13: Use Fibers., Ludovic Courtès, 2022/03/25
- [shepherd] 05/13: shepherd: Use one fiber for signal handling, and one for clients., Ludovic Courtès, 2022/03/25
- [shepherd] 06/13: service: 'read-pid-file' no longer blocks., Ludovic Courtès, 2022/03/25
- [shepherd] 07/13: service: 'read-pid-file' uses (@ (guile) sleep) when it's not suspendable., Ludovic Courtès, 2022/03/25
- [shepherd] 08/13: shepherd: Encode log as UTF-8 unconditionally., Ludovic Courtès, 2022/03/25
- [shepherd] 11/13: service: Remove unused 'make-init.d-service'.,
Ludovic Courtès <=
- [shepherd] 13/13: service: Add inetd constructor and destructor., Ludovic Courtès, 2022/03/25