Initial commit
This commit is contained in:
18
remove_pod_systemd_services.sh
Executable file
18
remove_pod_systemd_services.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Remove pod and containers systemd services
|
||||
|
||||
# Environment variables
|
||||
POD_NAME='traefik_pod'
|
||||
CTR_NAME='traefik_ctr'
|
||||
|
||||
systemctl --user stop pod-"$POD_NAME".service
|
||||
systemctl --user disable pod-"$POD_NAME".service
|
||||
systemctl --user stop container-"$CTR_NAME".service
|
||||
systemctl --user disable container-"$CTR_NAME".service
|
||||
|
||||
systemctl --user reset-failed
|
||||
rm -f ~/.config/systemd/user/pod-"$POD_NAME".service
|
||||
rm -f ~/.config/systemd/user/container-"$CTR_NAME".service
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user list-unit-files | grep -E 'pod-|container-' || echo "No pod/container units found"
|
||||
Reference in New Issue
Block a user