I've attached the test SMF manifest for the acctadm service. It runs acctadm -u 
after the single-user milestone is reached.
This should fix the problem (and RFEs) for Solaris 10 and SX.

I don't know how to get the link installed in the SUNWcsr pkgmap file to 
accomplish the same for Solaris 8 and 9.
ln /etc/init.d/acctadm /etc/rc2.d/S19acctadm

Note that the fix for 4520887 should probably be available if this is released; 
you don't want to lose any data in the accounting files from the previous boot. 
That could mean the loss of cash money to service providers if it's not fixed.

Please let me know if you have any questions.
Thanks!
Dave
-------------- next part --------------
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--

        ident   "@(#)acctadm.xml        1.1     06/03/18 DHS"

-->

<service_bundle type='manifest' name='acctadm'>

<service
        name='system/acctadm'
        type='service'
        version='1'>

        <create_default_instance enabled='false' />

        <single_instance />

        <dependency
                name='single-user'
                grouping='require_all'
                restart_on='none'
                type='service'>
                <service_fmri value='svc:/milestone/single-user' />
        </dependency>

        <dependency
            name='config_data'
            grouping='require_all'
            restart_on='none'
            type='path'>
                <service_fmri value='file://localhost/etc/acctadm.conf' />
        </dependency>

        <exec_method
            type='method'
            name='start'
            exec='/usr/sbin/acctadm -u'
            timeout_seconds='10' />

        <exec_method
            type='method'
            name='stop'
            exec=':true'
            timeout_seconds='5' />

        <property_group name='startd' type='framework'>
                <propval name='duration' type='astring' value='transient' />
        </property_group>

        <!-- No action_authorization avaialble for extended accounting -->

        <stability value='Unstable' />

        <template>
                <common_name>
                        <loctext xml:lang='C'>
                                Extended Accounting Initialization
                        </loctext>
                </common_name>
                <documentation>
                        <manpage title='acctadm' section='1M'
                                manpath='/usr/share/man' />
                </documentation>
        </template>

</service>

</service_bundle>

Reply via email to