Print this page
4743 Fix deprecated /usr/j2se usage in slp and remove from filesystem(5) manpage

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-inet/usr.lib/slpd/slp
          +++ new/usr/src/cmd/cmd-inet/usr.lib/slpd/slp
↓ open down ↓ 27 lines elided ↑ open up ↑
  28   28  # Service Method Support Script for the SLP service
  29   29  #
  30   30  # - operates a proxy for slpd which brings up the JVM to run slpd
  31   31  #   when required by a client; this prevents keeping JVM's alive
  32   32  #   when the service is not in use.
  33   33  #
  34   34  
  35   35  . /lib/svc/share/smf_include.sh
  36   36  
  37   37  CONF=/etc/inet/slp.conf
  38      -JAVA_BIN=/usr/j2se/bin/java
       38 +JAVA_BIN=/usr/java/bin/java
  39   39  CLASSPATH=/usr/share/lib/slp/slpd.jar
  40   40  MAIN_CLASS=com.sun.slp.slpd
  41   41  SLPD_HOME=/usr/lib/inet
  42   42  SLPD=slpd
  43   43  SLPD_BIN=$SLPD_HOME/$SLPD
  44   44  
  45   45  case "$1" in
  46   46  'start')
  47   47          # Start slpd proxy (as a fragile dependency, conf file must exist)
  48   48          $SLPD_BIN -f $CONF >/dev/msglog 2>&1 &
↓ open down ↓ 31 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX