~ubuntu-branches/ubuntu/quantal/logrotate/quantal

« back to all changes in this revision

Viewing changes to examples/logrotate.cron

  • Committer: Bazaar Package Importer
  • Author(s): Paul Martin
  • Date: 2004-06-11 13:51:34 UTC
  • mto: (2.1.1 warty) (3.1.1 dapper) (4.1.2 squeeze)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040611135134-v4dlej1q0ywdvum6
Tags: upstream-3.7
ImportĀ upstreamĀ versionĀ 3.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
3
/usr/sbin/logrotate /etc/logrotate.conf
 
4
EXITVALUE=$?
 
5
if [ $EXITVALUE != 0 ]; then
 
6
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
 
7
fi
 
8
exit 0