File: run.sh

package info (click to toggle)
golang-github-coreos-go-systemd 22.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 656 kB
  • sloc: sh: 101; makefile: 4
file content (13 lines) | stat: -rwxr-xr-x 228 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -e

go build

echo "Running directly"
./journal

echo "Running through systemd"
unit_name="run-$(systemd-id128 new)"
systemd-run -u "$unit_name" --user --wait --quiet ./journal
journalctl --user -u "$unit_name"