DamionGans / ubuntu-wsl2-systemd-script

[Does not work anymore!] Script to enable systemd support on current Ubuntu WSL2 images
1.56k stars 383 forks source link

Fix nested entering in the namespace #7

Closed paulstelian97 closed 4 years ago

paulstelian97 commented 4 years ago

This change ensures that if the terminal isn't wide enough for the regular ps -ef command to spell out the full command of the process the script doesn't break. Without the "-w" switch ("ignore width"), the command line would become truncated and "grep" would fail to find an existing systemd process.

Signed-off-by: Paul-Stelian Olaru olarupaulstelian97@gmail.com

lucyllewy commented 4 years ago

Thanks. Looks good :-)

DamionGans commented 4 years ago

Thanks for the contributions :-)