7 lines
183 B
Bash
Executable File
7 lines
183 B
Bash
Executable File
#!/bin/bash
|
|
|
|
for service in $(systemctl list-units --type=service --no-legend | grep example | awk '{print $1}'); do
|
|
sudo systemctl stop $service
|
|
echo "Stopped $service"
|
|
done
|