We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0bcbc8 commit 160973eCopy full SHA for 160973e
1 file changed
deisctl/backend/fleet/journal.go
@@ -18,6 +18,12 @@ func (c *FleetClient) Journal(target string) (err error) {
18
19
// runJournal tails the systemd journal for a given unit
20
func (c *FleetClient) runJournal(name string) (exit int) {
21
+ u, err := c.Fleet.Unit(name)
22
+ if suToGlobal(*u) {
23
+ fmt.Fprintf(c.errWriter, "Unable to get journal for global unit %s. Check on a host directly using journalctl.\n", name)
24
+ return 1
25
+ }
26
+
27
machineID, err := c.findUnit(name)
28
29
if err != nil {
0 commit comments