~fkooman/vpn-maint-scripts

ref: c4291d418191c4ac07d3f90a3fe9f354c28ea6d3 vpn-maint-scripts/bin/vpn-maint-stop-node -rwxr-xr-x 177 bytes
c4291d41François Kooman remove some old CentOS stuff 6 months ago
                                                                                
1
2
3
4
5
6
7
8
#!/bin/sh

if ! [ "root" = "$(id -u -n)" ]; then
    echo "ERROR: ${0} must be run as root!"; exit 1
fi

systemctl stop openvpn-server@\* --all
systemctl stop wg-quick@\* --all