aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2021-12-20 11:34:48 +0000
committerChristopher Baines <mail@cbaines.net>2021-12-20 11:34:48 +0000
commit049dfec287fa948cac6682d0a047bc0ed356f0bf (patch)
tree3cf548655ff3ba7a2d978884a04d36f36dcbef80
parentfdc8b32f40bf6a5248bd6ced2fc7c615f12a4301 (diff)
downloadnar-herder-049dfec287fa948cac6682d0a047bc0ed356f0bf.tar
nar-herder-049dfec287fa948cac6682d0a047bc0ed356f0bf.tar.gz
Add support for creating a pid file
-rw-r--r--scripts/nar-herder.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/nar-herder.in b/scripts/nar-herder.in
index a6c1a57..bbfaeea 100644
--- a/scripts/nar-herder.in
+++ b/scripts/nar-herder.in
@@ -87,6 +87,11 @@
(alist-cons 'host
arg
(alist-delete 'host result))))
+ (option '("pid-file") #t #f
+ (lambda (opt name arg result)
+ (alist-cons 'pid-file
+ arg
+ (alist-delete 'pid-file result))))
(option '("storage") #t #f
(lambda (opt name arg result)
(alist-cons 'storage