Merge "doc: Describe running a command as a separate group"

This commit is contained in:
Zuul 2018-06-12 08:25:47 +00:00 committed by Gerrit Code Review
commit aed9300b71
1 changed files with 13 additions and 0 deletions

View File

@ -152,6 +152,19 @@ Invoke the command manually::
/usr/local/bin/nova-scheduler --config-file /etc/nova/nova.conf
Some executables, such as :program:`nova-compute`, will need to be executed
with a particular group. This will be shown in the systemd unit file::
sudo systemctl cat devstack@n-cpu.service | grep Group
::
Group = libvirt
Use the :program:`sg` tool to execute the command as this group::
sg libvirt -c '/usr/local/bin/nova-compute --config-file /etc/nova/nova-cpu.conf'
Using remote-pdb
----------------