3
# if there is no 'logfile /var/log/ntpd' line in /etc/ntp.conf, ntpd will log
4
# via syslog, and output will show up in daemon.log. this log rotation code
5
# is therefore conditionalized such that we won't stop and restart the daemon
6
# unless we're not using syslog and need to rotate the /var/log/ntpd file.
8
if [ -x /usr/sbin/ntpd ]
10
if [ -f /var/log/ntpd ]
12
case $(start-stop-daemon --test --stop --exec /usr/sbin/ntpd) in
14
*Would\ send\ signal*)
16
/etc/init.d/ntp stop > /dev/null
17
savelog -g adm -m 644 -u root -c 4 /var/log/ntpd > /dev/null
18
/etc/init.d/ntp start > /dev/null