Skip to content

Commit

Permalink
systemctl helper for system containers
Browse files Browse the repository at this point in the history
  • Loading branch information
gbraad committed Jan 14, 2025
1 parent 54e7491 commit 78d7c22
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions zsh/.zshrc.d/sysctl.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/zsh

podsysctl() {

if [ $# -lt 2 ]; then
echo "Usage: podsysctl <name> <command> [args ...]"
return 1
fi

name=$1
shift 1
podman exec -it ${name} systemctl $@

}

0 comments on commit 78d7c22

Please sign in to comment.