all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#47923] gnu: Add daemonize.
@ 2021-04-20 21:07 Winter Hound
  2021-04-21  1:05 ` Leo Famulari
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Winter Hound @ 2021-04-20 21:07 UTC (permalink / raw)
  To: 47923

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-gnu-Add-daemonize.patch --]
[-- Type: text/x-diff; name="0001-gnu-Add-daemonize.patch", Size: 1893 bytes --]

From f9e100cf01ea72544996b54b78a08502ca33a413 Mon Sep 17 00:00:00 2001
From: WinterHound <winterhound@yandex.com>
Date: Wed, 21 Apr 2021 02:17:13 +0530
Subject: [PATCH] gnu: Add daemonize.

---
 gnu/packages/admin.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 57d509a184..f96f662562 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -469,6 +469,40 @@ services.")
     (license license:public-domain)
     (home-page "https://cr.yp.to/daemontools.html")))
 
+(define-public daemonize
+  (package
+    (name "daemonize")
+    (version "1.7.8")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/bmc/daemonize")
+             (commit (string-append "release-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0w4g0iyssyw7dd0061881z8s5czcl01mz6v00znax57zfxjqpvnm"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-makefile
+           (lambda _
+             (substitute* "Makefile.in"
+               (("/sbin") "/bin")) #t)))))
+    (synopsis "Command line utility to run a program as a Unix daemon")
+    (description
+     "daemonize runs a command as a Unix daemon.
+As defined in W.  Richard Stevens' 1990 book,
+Unix Network Programming (Addison-Wesley, 1990),
+a daemon is \"a process that executes 'in the background'
+(i.e., without an associated terminal or login shell)
+either waiting for some event to occur,
+or waiting to perform some specified task on a periodic basis.\"")
+    (home-page "http://software.clapper.org/daemonize/")
+    (license license:bsd-3)))
+
 (define-public dfc
   (package
    (name "dfc")
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-04-22  8:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-20 21:07 [bug#47923] gnu: Add daemonize Winter Hound
2021-04-21  1:05 ` Leo Famulari
2021-04-21  5:17   ` Winter Hound
2021-04-21  5:18   ` Winter Hound
2021-04-21  6:21 ` Winter Hound
2021-04-22  8:37 ` bug#47923: " Ricardo Wurmus

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.