<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Running UNIX &#187; psncollector</title>
	<atom:link href="http://www.runningunix.com/tag/psncollector/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.runningunix.com</link>
	<description>UNIX/Solaris tips, tricks, and advice</description>
	<lastBuildDate>Mon, 01 Aug 2011 17:37:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Changing timeouts on SMF services</title>
		<link>http://www.runningunix.com/2009/01/changing-timeouts-on-smf-services/</link>
		<comments>http://www.runningunix.com/2009/01/changing-timeouts-on-smf-services/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 18:23:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[psncollector]]></category>
		<category><![CDATA[smf]]></category>
		<category><![CDATA[timeout]]></category>

		<guid isPermaLink="false">http://www.runningunix.com/?p=209</guid>
		<description><![CDATA[I&#8217;ve run into an issue where the default timeout value (120 seconds) was not long enough for the start methods to run for my system services. In particular, the psncollector service. The psncollector service runs a &#8216;prtfru -x&#8217; command, which can take several minutes to complete on a large server like an E2900. With the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve run into an issue where the default timeout value (120 seconds) was not long enough for the start methods to run for my system services. In particular, the psncollector service.</p>
<p>The psncollector service runs a &#8216;prtfru -x&#8217; command, which can take several minutes to complete on a large server like an E2900. With the 120 second timeout, the start method fails:</p>
<blockquote><p>
# svcs -x<br />
svc:/application/psncollector:default (Product Serial Number Collector)<br />
 State: maintenance since Sun 25 Jan 2009 10:01:34 AM PST<br />
Reason: Start method failed repeatedly, last died on Killed (9).<br />
   See: http://sun.com/msg/SMF-8000-KS<br />
   See: /var/svc/log/application-psncollector:default.log<br />
Impact: This service is not running.</p>
<p># tail /var/svc/log/application-psncollector:default.log<br />
[ Jan 25 08:59:51 Executing start method ("/lib/svc/method/svc-psncollector") ]<br />
Using /var/run<br />
[ Jan 25 09:02:01 Method or service exit timed out.  Killing contract 48 ]<br />
[ Jan 25 09:02:05 Method or service exit timed out.  Killing contract 48 ]<br />
[ Jan 25 09:02:18 Method "start" failed due to signal KILL ]
</p></blockquote>
<p>The easy fix was to increase the service start timeout value:</p>
<blockquote><p>
# svccfg -s psncollector setprop start/timeout_seconds=480<br />
# svccfg -s psncollector setprop restart/timeout_seconds=480<br />
# svcadm refresh psncollector<br />
# svcadm clear psncollector
</p></blockquote>
<p>Once cleared, the service started up, taking its usual 3+ minutes.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.runningunix.com%2F2009%2F01%2Fchanging-timeouts-on-smf-services%2F&amp;title=Changing%20timeouts%20on%20SMF%20services" id="wpa2a_2"><img src="http://www.runningunix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.runningunix.com/2009/01/changing-timeouts-on-smf-services/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

