|
|
@@ -73,28 +73,31 @@
|
|
|
%quarterly -p 800 -u @l_susr@
|
|
|
rcService ntp enable yes || exit 0
|
|
|
[ ".$ntp_mode" = .quarterly ] && ntp_once 30
|
|
|
+ exit 0
|
|
|
|
|
|
%hourly -p 800 -u @l_susr@
|
|
|
rcService ntp enable yes || exit 0
|
|
|
[ ".$ntp_mode" = .hourly ] && ntp_once 30
|
|
|
+ exit 0
|
|
|
|
|
|
%daily -p 800 -u @l_susr@
|
|
|
rcService ntp enable yes || exit 0
|
|
|
[ ".$ntp_mode" = .daily ] && ntp_once 30
|
|
|
-
|
|
|
- # rotate logfile
|
|
|
shtool rotate -f \
|
|
|
-n ${ntp_log_numfiles} -s ${ntp_log_minsize} -d \
|
|
|
-z ${ntp_log_complevel} -m 644 -o @l_susr@ -g @l_mgrp@ \
|
|
|
-P "${ntp_log_prolog}" \
|
|
|
-E "${ntp_log_epilog} && rc ntp restart" \
|
|
|
@l_prefix@/var/ntp/ntp.log
|
|
|
+ exit 0
|
|
|
|
|
|
%weekly -p 800 -u @l_susr@
|
|
|
rcService ntp enable yes || exit 0
|
|
|
[ ".$ntp_mode" = .weekly ] && ntp_once 30
|
|
|
+ exit 0
|
|
|
|
|
|
%monthly -p 800 -u @l_susr@
|
|
|
rcService ntp enable yes || exit 0
|
|
|
[ ".$ntp_mode" = .monthly ] && ntp_once 30
|
|
|
+ exit 0
|
|
|
|