~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to debian/ntp-refclock.cron.weekly

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-10-11 16:10:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011161027-icyjbji8ujym633o
Tags: 1:4.2.0a-10ubuntu2
Use ntp.ubuntulinux.org instead of pool.ntp.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
 
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.
7
 
 
8
 
if [ -x /usr/sbin/ntpd ]
9
 
then
10
 
  if [ -f /var/log/ntpd ]
11
 
  then
12
 
    case $(start-stop-daemon --test --stop --exec /usr/sbin/ntpd) in
13
 
 
14
 
      *Would\ send\ signal*)
15
 
 
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
19
 
 
20
 
      ;;
21
 
 
22
 
    esac
23
 
  fi
24
 
fi