<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Svccfg on the bin</title><link>https://thebin.net/tags/svccfg/</link><description>Recent content in Svccfg on the bin</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 15 May 2014 00:00:00 +0000</lastBuildDate><atom:link href="https://thebin.net/tags/svccfg/index.xml" rel="self" type="application/rss+xml"/><item><title>Solaris SMF: Define File Dependency</title><link>https://thebin.net/2014/05/solaris-smf-define-file-dependency/</link><pubDate>Thu, 15 May 2014 00:00:00 +0000</pubDate><guid>https://thebin.net/2014/05/solaris-smf-define-file-dependency/</guid><description>&lt;p&gt;One of the biggest benefits of migrating to the Service Management Framework is that we can introduce dependencies to a services, these dependencies can be other services which is very valuable, however they can also be file based.  This can be used in a number of ways, say for example you have some application trees that live on some NFS mounts, in the event that the mount hasn’t been successfully mounted it will still attempt to start the service.  However if we make our service dependent on the file, then if the file doesn’t exist it won’t even attempt to start the service.&lt;/p&gt;</description></item><item><title>Solaris SMF: Define Service Execution User</title><link>https://thebin.net/2014/05/solaris-smf-define-service-execution-user/</link><pubDate>Wed, 14 May 2014 00:00:00 +0000</pubDate><guid>https://thebin.net/2014/05/solaris-smf-define-service-execution-user/</guid><description>&lt;p&gt;Frequently we want a service to execute as a non-root user, this is pretty trivial in the context of the Service Management Facility in Solaris.  This article will go over exactly what goes into that.  The one complexity around that is the environment, if you have environment variables that the user will depend on those, they will need to be setup inside of the SMF.  I will not be going into that in this article.&lt;/p&gt;</description></item><item><title>Solaris SMF: Delegate Service Control</title><link>https://thebin.net/2014/05/solaris-smf-delegate-service-control/</link><pubDate>Tue, 13 May 2014 00:00:00 +0000</pubDate><guid>https://thebin.net/2014/05/solaris-smf-delegate-service-control/</guid><description>&lt;p&gt;In many of the environments that I deliver to a client we have a concept of an “environment account” this account is the credential set that the environment runs as.  Over time and the maturation of the Service Management Facility (SMF) we have been able to simplify this offering and increase its capabilities.  Today we are going to talk about allowing the environment user to manage a service controlled by SMF.&lt;/p&gt;</description></item><item><title>Solaris 11: DNS Client Configuration Using Svccfg</title><link>https://thebin.net/2012/05/solaris-11-dns-client-configuration-using-svccfg/</link><pubDate>Wed, 23 May 2012 00:00:00 +0000</pubDate><guid>https://thebin.net/2012/05/solaris-11-dns-client-configuration-using-svccfg/</guid><description>&lt;p&gt;In Solaris 11, alot of configurations are being moved from configuration files into the Service Management Framework.  Here we will discuss this change around the DNS client.&lt;/p&gt;&#10;&lt;h2 id="view-existing-dns-client-configuration"&gt;View Existing DNS Client Configuration&lt;/h2&gt;&#10;&lt;div class="codeblock" data-lang="bash"&gt;&#10; &lt;div class="codeblock__bar"&gt;&#10; &lt;span class="codeblock__lang"&gt;bash&lt;/span&gt;&#10; &lt;button type="button" class="codeblock__copy" aria-label="Copy code"&gt;&#10; &lt;span class="codeblock__copy-label"&gt;Copy&lt;/span&gt;&#10; &lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;svccfg -s network/dns/client listprop config&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config application&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config/value_authorization astring solaris.smf.value.name-service.dns.client&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config/domain astring test.local&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config/nameserver net_address 10.0.0.152&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;h2 id="update-existing-dns-client-configuration"&gt;Update Existing DNS Client Configuration&lt;/h2&gt;&#10;&lt;p&gt;Here we will update our name servers.  In this case we are replacing the original with two different addresses.&lt;/p&gt;</description></item><item><title>Solaris 11: Change Hostname Using Svccfg</title><link>https://thebin.net/2012/05/solaris-11-change-hostname-using-svccfg/</link><pubDate>Tue, 22 May 2012 00:00:00 +0000</pubDate><guid>https://thebin.net/2012/05/solaris-11-change-hostname-using-svccfg/</guid><description>&lt;p&gt;When Solaris 11 was released more configurations were moved into the service management framework, and moved out of configuration files, one of these changes was the hostname/nodename.&lt;/p&gt;&#10;&lt;p&gt;View Hostname in SMF&lt;/p&gt;&#10;&lt;p&gt;This will read back the configuration out of the SMF.&lt;/p&gt;&#10;&lt;div class="codeblock" data-lang="bash"&gt;&#10; &lt;div class="codeblock__bar"&gt;&#10; &lt;span class="codeblock__lang"&gt;bash&lt;/span&gt;&#10; &lt;button type="button" class="codeblock__copy" aria-label="Copy code"&gt;&#10; &lt;span class="codeblock__copy-label"&gt;Copy&lt;/span&gt;&#10; &lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;svccfg -s system/identity:node listprop config&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config application&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config/nodename astring solaris11box&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config/loopback astring solaris11box&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;h2 id="change-hostname-in-smf"&gt;Change Hostname in SMF&lt;/h2&gt;&#10;&lt;p&gt;We have two separate settings, which need to be updated.&lt;/p&gt;</description></item></channel></rss>