OSSP CVS Repository

ossp - Check-in [6018]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 6018
Date: 2008-Sep-22 15:03:48 (local)
2008-Sep-22 13:03:48 (UTC)
User:rse
Branch:
Comment: remove number extension and document environment variables
Tickets:
Inspections:
Files:
ossp-pkg/shtool/sh.rotate      1.15 -> 1.16     8 inserted, 5 deleted

ossp-pkg/shtool/sh.rotate 1.15 -> 1.16

--- sh.rotate    2008/09/21 15:01:15     1.15
+++ sh.rotate    2008/09/22 13:03:48     1.16
@@ -399,7 +399,7 @@
         #   pass archive file name to epilog command
         #   epilog cannot be handed an argument as it is often
         #   called as "epilog && something"
-        SHTOOL_ROTATE_LOGFILE="${adir}/${file}.${n}"
+        SHTOOL_ROTATE_LOGFILE="${adir}/${file}"
         export SHTOOL_ROTATE_LOGFILE
         if [ ".$opt_t" = .yes ]; then
             echo "$opt_E"
@@ -568,13 +568,16 @@
 
 =item B<-P>, B<--prolog> I<cmd>
 
-Execute a "prolog" command before the rotation step. Useful in
-conjunction with B<-s>.
+Execute a "prolog" command before the rotation step.
+Useful in conjunction with B<-s>. The environment variable
+C<SHTOOL_ROTATE_LOGFILE> points to the path of the original logfile.
 
 =item B<-E>, B<--epilog> I<cmd>
 
-Execute a "epilog" command after the rotation step. Useful in
-conjunction with B<-s>.
+Execute a "epilog" command after the rotation step. Useful
+in conjunction with B<-s>. The environment variable
+C<SHTOOL_ROTATE_LOGFILE> points to the path of the archived logfile
+(without any number extension).
 
 =back
 

CVSTrac 2.0.1