Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../.././../lib/svc/method/rmtmpfiles
Real path: /lib/svc/method/rmtmpfiles
Zurück
#!/usr/sbin/sh # # Copyright (c) 1988, 2016, Oracle and/or its affiliates. All rights reserved. # # For modifying the behavior of rmtmpfiles, do not edit this script. # Instead use svccfg(8) to modify the SMF repository. To achieve # traditional System V treatment of /var/tmp, invoke the following # commands.: # # # svccfg # svc:> select system/rmtmpfiles # svc:/system/rmtmpfiles> setprop options/clean_vartmp="true" # svc:/system/rmtmpfiles> select default # svc:/system/rmtmpfiles:default> refresh # svc:/system/rmtmpfiles:default> exit # # We only support /tmp as tmpfs so we no longer clean it. # Clean up /etc directory rm -f /etc/rem_name_to_major /etc/nologin # Traditional SunOS 4.x behavior has been to not alter the contents of # /var/tmp (/usr/tmp) at boot time. This behavior is maintained as the # current default behavior. If the traditional System V behavior of # removing everything in /var/tmp is desired then clean up /var/tmp, # unless any of its subdirectories are mount points for another filesystem. if [[ $(svcprop -c -p options/clean_vartmp $SMF_FMRI) == true ]] && nawk '$2 ~ /^\/var\/tmp\// { exit(1) }' /etc/mnttab; then cd /var/tmp || exit 0 # We carefully remove all files except the Ex* files (editor # temporary files), which expreserve will process later (in # S89PRESERVE). Of course, it would be simpler to just run # expreserve before this script, but that doesn't work -- # expreserve requires the name service, which is not available # until much later. # # We use find here with some tricks in the expression; # first we do not want to rm "." though rm does not allow that # anyway. (! -name .) # Then we don't want to search subdirectories (-prune) and # filter out the Ex* file and then hander it all to rm -rf. find . ! -name . -prune ! -name Ex\* -exec rm -rf {} + fi exit 0