#!/bin/sh # `man NetworkManager-dispatcher` if [ "$1" = wg_ba ]; then case "$2" in # my test shows only pre-down will be emitted, vpn-pre-down and down will not be emitted here pre-down) systemctl stop monerod@xyz;; esac fi