Changes
Page history
Create Useful commands
authored
Oct 28, 2021
by
Nikolai.Hartmann
Show whitespace changes
Inline
Side-by-side
Useful-commands.md
0 → 100644
View page @
ced5dae9
# xcache service unit
Show status
```
bash
systemctl status systemd-nspawn@xcache
```
Restart
```
bash
systemctl restart systemd-nspawn@xcache
```
Show logs
```
bash
journalctl
-eu
systemd-nspawn@xcache
[
--since
...]
```
# container commands
run a command in a new container using the xcache image (as xrootd user)
```
bash
systemd-nspawn
-D
/var/lib/machines/xcache <
command
>
```
get a shell (as xrootd user)
```
bash
systemd-nspawn
-D
/var/lib/machines/xcache /bin/bash
```
get a shell in a running container (as root, usually not nescessary)
```
nsenter --target=$(machinectl show --property Leader xcache | sed "s/^Leader=//") --all
```
\ No newline at end of file