Skip to content

Commit 66a14df

Browse files
committed
doc: prefix journalctl examples with sudo
In a devstack environment you likely need to use sudo to run the journalctl command, so this adds that to the examples. Change-Id: Ibe6b71285a3014e80e06a50130f18bfbdb4ff3ab
1 parent 672ac22 commit 66a14df

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

doc/source/systemd.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,25 +94,25 @@ query facilities. We'll start with some common options.
9494

9595
Follow logs for a specific service::
9696

97-
journalctl -f --unit devstack@n-cpu.service
97+
sudo journalctl -f --unit devstack@n-cpu.service
9898

9999
Following logs for multiple services simultaneously::
100100

101-
journalctl -f --unit devstack@n-cpu.service --unit devstack@n-cond.service
101+
sudo journalctl -f --unit devstack@n-cpu.service --unit devstack@n-cond.service
102102

103103
or you can even do wild cards to follow all the nova services::
104104

105-
journalctl -f --unit devstack@n-*
105+
sudo journalctl -f --unit devstack@n-*
106106

107107
Use higher precision time stamps::
108108

109-
journalctl -f -o short-precise --unit devstack@n-cpu.service
109+
sudo journalctl -f -o short-precise --unit devstack@n-cpu.service
110110

111111
By default, journalctl strips out "unprintable" characters, including
112112
ASCII color codes. To keep the color codes (which can be interpreted by
113113
an appropriate terminal/pager - e.g. ``less``, the default)::
114114

115-
journalctl -a --unit devstack@n-cpu.service
115+
sudo journalctl -a --unit devstack@n-cpu.service
116116

117117
When outputting to the terminal using the default pager, long lines
118118
appear to be truncated, but horizontal scrolling is supported via the

0 commit comments

Comments
 (0)