1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#!/bin/bash case "$1" in start) echo "Iniciando ntpd" /usr/local/bin/ntpd -A stop) echo "Terminando ntpd..." killall ntpd ;; *) echo "Uso: $0 {start|stop}" exit 1 ;; esac |