sdnbash() { # systemd namespace bash
local unit pid
+ if (( $# != 0 )); then
+ echo $0: error wrong number of args >&2
+ return 1
+ fi
unit=$1
pid=$(servicepid $unit)
m sudo nsenter -t $pid -n -m sudo -u $USER -i bash
sdncmd() { # systemd namespace cmd
local unit pid
+ if (( $# != 0 )); then
+ echo $0: error wrong number of args >&2
+ return 1
+ fi
unit=$1
shift
pid=$(servicepid $unit)