On 2016-07-11 11:41, Jousma, David wrote:
> > By PTF.  Here is current maint on my system.  I didn’t create these 
> > symlinks.   However had already done this at our shop long ago (different 
> > symlinks), for the very same reason.   Except, that I get to control when 
> > the symlinks change.
>
Good idea.  And you could craft an invariant update EXEC that
you could run electively.  It could use:
    address SYSCALL realpath /usr/lpp/java/current
... and use the returned path to update your link.  If you're
a fanatic, you could rely on documented properties of rename()
to guarantee not even a minuscule timing window while updating
the symlink.

(Visitors to your site who follow their habits might use a
different release of java.)

> TEC1:$ cd /RSM01A/usr/lpp/java
> TEC1:$ ls -al
> total 96
> drwxr-xr-x   6 P0SJR    OMVSGRP     8192 Jul  5 10:43 .
> drwxr-xr-x  42 P0SJR    OMVSGRP     8192 Jan 26 14:35 ..
> drwxr-xr-x  12 P0SJR    OMVSGRP     8192 Apr 22 04:01 J7.1
> drwxr-xr-x  12 P0SJR    OMVSGRP     8192 Apr 22 04:07 J7.1_64
> drwxr-xr-x  12 P0SJR    OMVSGRP     8192 Apr 28 00:44 J8.0
> drwxr-xr-x  12 P0SJR    OMVSGRP     8192 Apr 28 00:46 J8.0_64
> lrwxrwxrwx   1 P0SJR    OMVSGRP       28 Feb  8 10:31 current -> 
> /RSM02A/usr/lpp/java/J8.0_64
> lrwxrwxrwx   1 P0SJR    OMVSGRP       25 Jul  5 10:43 current_31 -> 
> /RSM01A/usr/lpp/java/J8.0
> lrwxrwxrwx   1 P0SJR    OMVSGRP       28 Jul  5 10:43 current_64 -> 
> /RSM01A/usr/lpp/java/J8.0_64

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to