OSSP CVS Repository

ossp - Difference in ossp-pkg/shtool/sh.rotate versions 1.15 and 1.16
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

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