1#!/bin/bash 2 3set -e 4 5go build 6 7echo "Running directly" 8./journal 9 10echo "Running through systemd" 11unit_name="run-$(systemd-id128 new)" 12systemd-run -u "$unit_name" --user --wait --quiet ./journal 13journalctl --user -u "$unit_name"
View as plain text