[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shepherd] 11/16: service: Remove unused 'make-init.d-service'.
From: |
Ludovic Courtès |
Subject: |
[shepherd] 11/16: service: Remove unused 'make-init.d-service'. |
Date: |
Sun, 27 Mar 2022 17:08:30 -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] 13/16: service: Add inetd constructor and destructor., (continued)
- [shepherd] 13/16: service: Add inetd constructor and destructor., Ludovic Courtès, 2022/03/27
- [shepherd] 15/16: service: Add systemd constructor and destructor., Ludovic Courtès, 2022/03/27
- [shepherd] 06/16: service: 'read-pid-file' no longer blocks., Ludovic Courtès, 2022/03/27
- [shepherd] 04/16: build: Capture the source and object directories of Fibers., Ludovic Courtès, 2022/03/27
- [shepherd] 09/16: service: 'make-forkexec-constructor' spawns a logging fiber., Ludovic Courtès, 2022/03/27
- [shepherd] 01/16: shepherd: Factorize out the main loop., Ludovic Courtès, 2022/03/27
- [shepherd] 07/16: service: 'read-pid-file' uses (@ (guile) sleep) when it's not suspendable., Ludovic Courtès, 2022/03/27
- [shepherd] 03/16: Use Fibers., Ludovic Courtès, 2022/03/27
- [shepherd] 05/16: shepherd: Use one fiber for signal handling, and one for clients., Ludovic Courtès, 2022/03/27
- [shepherd] 10/16: doc: Fix inetutils cross-reference., Ludovic Courtès, 2022/03/27
- [shepherd] 11/16: service: Remove unused 'make-init.d-service'.,
Ludovic Courtès <=
- [shepherd] 14/16: service: Allow 'running' value to be a thunk., Ludovic Courtès, 2022/03/27
- [shepherd] 16/16: service: Add 'start-in-the-background'., Ludovic Courtès, 2022/03/27