#!/bin/bash case "$2" in up) systemctl start ntpd.service ;; down) systemctl stop ntpd.service ;; esac