Skip to content

Commit aed9300

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "doc: Describe running a command as a separate group"
2 parents d2e82a4 + 43f25c0 commit aed9300

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

doc/source/systemd.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,19 @@ Invoke the command manually::
152152

153153
/usr/local/bin/nova-scheduler --config-file /etc/nova/nova.conf
154154

155+
Some executables, such as :program:`nova-compute`, will need to be executed
156+
with a particular group. This will be shown in the systemd unit file::
157+
158+
sudo systemctl cat devstack@n-cpu.service | grep Group
159+
160+
::
161+
162+
Group = libvirt
163+
164+
Use the :program:`sg` tool to execute the command as this group::
165+
166+
sg libvirt -c '/usr/local/bin/nova-compute --config-file /etc/nova/nova-cpu.conf'
167+
155168
Using remote-pdb
156169
----------------
157170

0 commit comments

Comments
 (0)