mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 14:41:31 +02:00
Merge pull request #128 from kinvolk/kai/systemd-run-unit-name
jenkins/systemd-run-wrap.sh: randomize unit name suffix
This commit is contained in:
commit
dbbdb32250
@ -15,7 +15,7 @@ for VARNAME in $(sh -c 'compgen -v'); do
|
|||||||
ARGS+=("--setenv" "${VARNAME}=${VAL}")
|
ARGS+=("--setenv" "${VARNAME}=${VAL}")
|
||||||
done
|
done
|
||||||
|
|
||||||
UNITNAME="run-$(date '+%s')"
|
UNITNAME="run-$(date '+%s')-${RANDOM}"
|
||||||
|
|
||||||
# The --pipe option does not stop the unit when the systemd-run process is killed, we have to do this through a trap
|
# The --pipe option does not stop the unit when the systemd-run process is killed, we have to do this through a trap
|
||||||
# (and --pty as alternative doesn't behave well because it leads to processes expecting stdin when there is none)
|
# (and --pty as alternative doesn't behave well because it leads to processes expecting stdin when there is none)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user