From: Hendrik Jäger Date: Fri, 25 Aug 2023 11:28:11 +0000 (+0200) Subject: change execlineb options to handle the parameters given X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=48215281a21a8e868ecbd58eff96c20d6c0e3712;p=user%2Fhenk%2Fcode%2Fs6%2Fservice_directory_template.git change execlineb options to handle the parameters given --- diff --git a/finish b/finish index 6d0016b..cd402a9 100644 --- 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 870a644..5a3526d 100644 --- 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 856f09d..7ee0836 100644 --- 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