Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../././../lib/svc/method/net-socket-config
Real path: /lib/svc/method/net-socket-config
Zurück
#!/usr/sbin/sh # # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. # # This service configures sockets. Specifically, it establishes the mapping # between <family, type, protocol> and a socket module or TPI device. # . /lib/svc/share/smf_include.sh # # In a non-global zone we need this service to be up, but all of the # work it tries to do is irrelevant (and will actually lead to the # service failing if we try to do it), so just bail out. In the global # zone we proceed. # smf_is_globalzone || exit $SMF_EXIT_OK reconfig=0 ign_err=0 is_reconfigure_boot && reconfig=1 case "$1" in 'start') # # On reconfigure boot there can be missing /dev entries that would # cause soconfig(8) to fail. We ignore errors in that case. This # service will be refreshed by device/local after it runs devfsadm(8). # [ $reconfig -eq 1 ] && ign_err=1 ;; 'refresh') # # New socket types are potentially being added. Those new sockets # might use TPI, and we have to ensure that any /dev entries are # present before we run soconfig(8). If the service is being # refreshed during reconfigure boot, then the refresh is being # done by device/local, which has already run devfsadm(8). # [ $reconfig -eq 0 ] && /usr/sbin/devfsadm -u ;; *) echo "Usage: $0 { start | refresh }" exit $SMF_EXIT_ERR_FATAL ;; esac /usr/sbin/soconfig -d /etc/sock2path.d if [ $? -ne 0 ]; then if [ $ign_err -eq 0 ]; then exit $SMF_EXIT_ERR_FATAL else echo "Errors ignored due to reconfiguration boot. " \ "Service will be refreshed." fi fi exit $SMF_EXIT_OK