Bick Torrejon
2012-09-11 361b1511d48fbeeb95eaaaa787a89a28aa0403e4
7181923 svc:/application/texinfo-update should handle Immutable zones
2 files modified
25 ■■■■ changed files
components/texinfo/svc-texinfo-update 16 ●●●● patch | view | raw | blame | history
components/texinfo/texinfo-update.xml 9 ●●●● patch | view | raw | blame | history
components/texinfo/svc-texinfo-update
@@ -21,7 +21,7 @@
#
#
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
#
. /lib/svc/share/smf_include.sh
@@ -84,10 +84,22 @@
case "$1" in
'start'|'refresh')
    if [[ "$1" = 'start' ]]; then
        if [[ ! -f "/.SELF-ASSEMBLY-REQUIRED" ]]; then
            exit $SMF_EXIT_OK
        fi
    fi
    # refresh texinfo directories
    for dir_link in $(pkg search -H -l -o path ':link:path:*/info/dir' | \
              sort -u) ; do
        populate_texinfo_directory /${dir_link}
        # test the directory is writable
        if [[ ! -w /${dir_link} ]]; then
            echo $SMF_EXIT_OK
        else
            populate_texinfo_directory /${dir_link}
        fi
    done
    # remove any unreferenced directories
    for link in $(find ${TEXINFO_DATA_DIR} -type l -name '*.backlink') ; do
components/texinfo/texinfo-update.xml
@@ -21,7 +21,7 @@
 CDDL HEADER END
 Copyright (c) 2011, Oracle and/or it's affiliates.  All rights reserved.
 Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
    NOTE:  This service manifest is not editable; its contents will
    be overwritten by package or patch operations, including
@@ -49,6 +49,13 @@
        <service_fmri value='svc:/milestone/multi-user-server' />
    </dependency>
    <dependency
        name='texinfo-update_self-assembly-complete'
        grouping='optional_all'
        restart_on='none'>
        <service_fmri value='svc:/milestone/self-assembly-complete' />
    </dependency>
    <exec_method
        type='method'
        name='start'