]> git.netwichtig.de Git - user/henk/code/s6/service_directory_template.git/commitdiff
change execlineb options to handle the parameters given
authorHendrik Jäger <gitcommit@henk.geekmail.org>
Fri, 25 Aug 2023 11:28:11 +0000 (13:28 +0200)
committerHendrik Jäger <gitcommit@henk.geekmail.org>
Fri, 25 Aug 2023 12:19:11 +0000 (14:19 +0200)
finish
log/run
run

diff --git a/finish b/finish
index 6d0016b8b09978663b43a6d1c5ca8fd152094ee4..cd402a9f5f3da0f41d22ae740fd8d67d96f946ec 100644 (file)
--- a/finish
+++ b/finish
@@ -1,4 +1,9 @@
-#!/usr/bin/execlineb -P
+#!/usr/bin/execlineb -S3
+# the -S3 tells execline to substitute 3 positional parameters
+# which for this file are:
+# 1) exit code of the 'run' script
+# 2) the number of the signal that killed the 'run' script (or an undefined number)
+# 3) the name of the service directory
 
 # TODO:
 # a sane example of handling the arguments would be nice
diff --git a/log/run b/log/run
index 870a644b5a4b6dd3c049a8a15138f793f691ce03..5a3526d195ac38f0a9118f5ecffcdd3de7138da9 100644 (file)
--- a/log/run
+++ b/log/run
@@ -1,4 +1,6 @@
-#!/usr/bin/execlineb -P
+#!/usr/bin/execlineb -S1
+# the -S1 tells execline to substitute 1 positional parameter
+# which for this file is: the name of the service directory
 
 # TODO:
 # a sane example of handling the arguments would be nice
diff --git a/run b/run
index 856f09d946f6c392b4680329d309ecd472072459..7ee08360c282064d09db714e497061bb1c9b24de 100644 (file)
--- a/run
+++ b/run
@@ -1,4 +1,6 @@
-#!/usr/bin/execlineb -P
+#!/usr/bin/execlineb -S1
+# the -S1 tells execline to substitute 1 positional parameter
+# which for this file is: the name of the service directory
 
 # TODO:
 # a sane example of handling the arguments would be nice