~ubuntu-branches/ubuntu/vivid/logrotate/vivid

« back to all changes in this revision

Viewing changes to examples/logrotate.cron

  • Committer: Bazaar Package Importer
  • Author(s): Paul Martin
  • Date: 2005-05-25 10:43:42 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050525104342-kc8tsbw57qbfmi7s
Tags: 3.7-5
Brown paper bag upload.

42-execlp-bin-sh: Fix major flaw in the last patch... it tries to 
execute the logfile. Thanks very much for the quick report, Philipp.
It was my fault, not yours. (Closes: #279965)

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