From: Efraim Flashner <efraim@flashner.co.il>
To: guix-devel@gnu.org
Subject: Announcing shepherd-run
Date: Sun, 3 Nov 2024 15:19:04 +0200 [thread overview]
Message-ID: <Zyd4SGfUKTJbZsFD@3900XT> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 899 bytes --]
Announcing the initial release of shepherd-run!
Do you have experience with systemd and systemd-run? Do you wish you
were able to quickly and easily add a simple service to your (user or
system) shepherd instance?
Using the finest technologies from the 70's, written in gawk, I present
shepherd-run!
Want to build a derivation but don't care when it finishes?
shepherd-run -e 'guix build /gnu/store/...-drv'
Need to clear up some room in your store but don't want to dedicate a
terminal to waiting for it to finish?
shepherd-run -e "guix gc"
Want to spam your shepherd logs?
'shepherd run --exec yes'
Get ready, it's coming soon to a guix repository near you!
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #1.2: 0001-gnu-Add-shepherd-run.patch --]
[-- Type: text/plain, Size: 3508 bytes --]
From 0987a56039f9626664f89095b292421081daddae Mon Sep 17 00:00:00 2001
Message-ID: <0987a56039f9626664f89095b292421081daddae.1730639824.git.efraim@flashner.co.il>
From: Efraim Flashner <efraim@flashner.co.il>
Date: Sun, 3 Nov 2024 15:16:11 +0200
Subject: [PATCH] gnu: Add shepherd-run.
* gnu/packages/admin.scm (shepherd-run): New variable.
Change-Id: I4b08c84f83bcc588db7a11619321f4c8dee48257
---
gnu/packages/admin.scm | 42 +++++++++++++++++++++++++++++++++++++++++-
1 file changed, 41 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 88d68a3afcc..575b00736fe 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -9,7 +9,7 @@
;;; Copyright © 2016, 2017, 2020 Leo Famulari <leo@famulari.name>
;;; Copyright © 2016 Pjotr Prins <pjotr.guix@thebird.nl>
;;; Copyright © 2016, 2017, 2023 Ricardo Wurmus <rekado@elephly.net>
-;;; Copyright © 2016-2023 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2016-2024 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Peter Feigl <peter.feigl@nexoid.at>
;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
@@ -423,6 +423,46 @@ (define-public guile2.2-shepherd
(native-inputs (list pkg-config guile-2.2))
(inputs (list guile-2.2 guile2.2-fibers))))
+(define-public shepherd-run
+ (package
+ (name "shepherd-run")
+ (version "0.1.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.sr.ht/~efraim/shepherd-run")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "033l8ignsrr6p2wgwcyqlswpbf58kyl8cf7zwkz028gqfq4arkr8"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list
+ #:make-flags #~(list (string-append "PREFIX=" #$output))
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure) ; No configure script.
+ ;; First 'check checks the shell script which loads the gawk code.
+ ;; This 'check checks the installed gawk script.
+ (add-after 'patch-shebangs 'check-again
+ (lambda args
+ (apply (assoc-ref %standard-phases 'check)
+ (append args
+ (list #:make-flags
+ (list (string-append "BINARY=" %output
+ "/bin/shepherd-run"))))))))))
+ (native-inputs (list diffutils help2man))
+ (inputs (list gawk))
+ (synopsis "Create GNU Shepherd services from the command line")
+ (description
+ "Shepherd-run is a script which assists in creating one-off shepherd
+services from the command line. It is meant to partially fill the void left
+by @command{systemd-run}, since GNU Guix uses GNU Shepherd as its system service
+manager.")
+ (home-page "https://git.sr.ht/~efraim/shepherd-run")
+ (license license:gpl3+)))
+
(define-public swineherd
(package
(name "swineherd")
base-commit: 8964dfdb84f7d21dbc89c217ca4f4546a15990af
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next reply other threads:[~2024-11-03 13:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-03 13:19 Efraim Flashner [this message]
2024-11-03 15:57 ` Announcing shepherd-run Denis 'GNUtoo' Carikli
2024-11-03 18:18 ` Efraim Flashner
2024-11-04 22:34 ` Ludovic Courtès
2024-11-05 10:59 ` Efraim Flashner
2024-11-09 22:48 ` Ludovic Courtès
2024-11-19 17:17 ` Runciter via Development of GNU Guix and the GNU System distribution.
2024-11-20 21:24 ` Ludovic Courtès
2024-11-21 18:58 ` Efraim Flashner
2024-11-28 8:10 ` 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=Zyd4SGfUKTJbZsFD@3900XT \
--to=efraim@flashner.co.il \
--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).