# When true, log messages from the journal are passed through the
# pipeline as a JSON message with all of the journal entries' original
# fields. When false, the log message is the text content of the MESSAGE
# field from the journal entry.
[json: | default = false]
# The oldest relative time from process start that will be read
# and sent to Loki.
[max_age: | default = 7h]
# Label map to add to every log coming out of the journal
labels:
[ : ... ]
# Path to a directory to read entries from. Defaults to system
# paths (/var/log/journal and /run/log/journal) when empty.
[path: ]
У того специалиста появилось миллион дел и вряд ли у него появится для вашего верного холопа времязвучит очень странно
#!/bin/bash
exit_script() {
echo "Printing something special!"
echo "Maybe executing other commands!"
trap - SIGINT SIGTERM # clear the trap
kill -- -$$ # Sends SIGTERM to child/sub processes }
trap exit_script SIGINT SIGTERM
echo "Some other text"
#other commands here
sleep infinity