Scripts to enable/disable ntp service

This commit is contained in:
Babak Farrokhi 2018-11-18 12:23:23 +03:30
parent 28e708583a
commit 720238e70d
Signed by: farrokhi
GPG Key ID: 6B267AD85D632E9A
2 changed files with 8 additions and 0 deletions

4
disable-ntpd Normal file
View File

@ -0,0 +1,4 @@
(
service ntpd stop
sysrc ntpd_enable=NO
) && echo "stopped and disabled ntpd service"

4
enable-ntpd Normal file
View File

@ -0,0 +1,4 @@
(
sysrc ntpd_enable=YES
service ntpd start
) && echo "enabled and started ntpd service"