diff options
author | Simon Rettberg | 2023-04-25 14:56:25 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-04-25 14:56:25 +0200 |
commit | 3b05403baf6ebba969baaf0b6147ca684a61fe49 (patch) | |
tree | 237a5e4d62a28d18c67f7efc2d9104a90366fd30 /modules.d/slx-clock/scripts/ntp-sync.sh | |
parent | Make ask-password removal more sophisticated (diff) | |
download | systemd-init-3b05403baf6ebba969baaf0b6147ca684a61fe49.tar.gz systemd-init-3b05403baf6ebba969baaf0b6147ca684a61fe49.tar.xz systemd-init-3b05403baf6ebba969baaf0b6147ca684a61fe49.zip |
[slx-clock] Write any output to journal
Diffstat (limited to 'modules.d/slx-clock/scripts/ntp-sync.sh')
-rwxr-xr-x | modules.d/slx-clock/scripts/ntp-sync.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules.d/slx-clock/scripts/ntp-sync.sh b/modules.d/slx-clock/scripts/ntp-sync.sh index 81b4b5a3..a533353c 100755 --- a/modules.d/slx-clock/scripts/ntp-sync.sh +++ b/modules.d/slx-clock/scripts/ntp-sync.sh @@ -50,7 +50,11 @@ ntp_sync() { echo "Timesync finished" } -ntp_sync +if command -v systemd-cat > /dev/null; then + ntp_sync 2>&1 | systemd-cat +else + ntp_sync +fi true |