1 2 3 4 5 6 7 8 9
#!/bin/bash case "$2" in up) systemctl start ddclient.service ;; down) systemctl stop ddclient.service ;; esac