Quick Review: Boxee Box
December 27, 2011 – 12:22 am | 3 Comments

Some of the technical issues with Boxee Box could have been fixed if the dev team was paying more attention to addressing the bugs rather than adding “features” of dubious value. In the final analysis, for the price and ease of use, Boxee Box is the best in its class and price range. You just need to be mindful of its limitations and buy it in hope of future improvements to its usability.

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Commands & Shells

Modifying Solaris Services

Submitted by on September 9, 2010 – 4:33 pmNo Comment
Modifying Solaris Services

Recently I ran into an issue: the sshd service on a Solaris 10 box needed to be used with a custom configuration file. By default, the sshd service will use /etc/ssh/sshd_config. I needed it to use /etc/ssh/sshd_config_custom. I could not just modify the default configuration file. Don’t ask why – it’s complicated. So here’s what I ended up doing and this process is applicable to modifying any other Solaris 10 (and above) service:

See what SSH services are running on the system

# svc | grep ssh
 
online     16:00:01     svc:/network/ssh:default

Get the details for the “network/ssh” service

# svcs -l network/ssh
 
fmri         svc:/network/ssh:default
name         SSH server
enabled      true
state        online
next_state   none
state_time   Thu Sep 09 16:00:01 2010
logfile      /var/svc/log/network-ssh:default.log
restarter    svc:/system/svc/restarter:default
contract_id  146
dependency   require_all/none svc:/system/filesystem/local (online)
dependency   optional_all/none svc:/system/filesystem/autofs (online)
dependency   require_all/none svc:/network/loopback (online)
dependency   require_all/none svc:/network/physical (online)
dependency   require_all/none svc:/system/cryptosvc (online)
dependency   require_all/none svc:/system/utmp (online)
dependency   require_all/restart file://localhost/etc/ssh/sshd_config (online)

Create custom sshd configuration file. For this example we will just make a copy of the default sshd_config and then rename the default file to something else.

cp -p /etc/ssh/sshd_config /etc/ssh/sshd_config_custom
mv /etc/ssh/sshd_config /etc/ssh/ssh_config_old

Edit the ssh.xml file containing service configuration details for network/ssh service

vi /var/svc/manifest/network/ssh.xml

Find the following line:

value='file://localhost/etc/ssh/sshd_config />'

And change it to:

value='file://localhost/etc/ssh/sshd_config_custom />'

Edit the sshd startup file:

vi /lib/svc/method/sshd

Fine the following line in the “start” section of the “case” function:

/usr/lib/ssh/sshd

And change it to:

/usr/lib/ssh/sshd -f /etc/ssh/sshd_config_custom

Finally, restart sshd service:

svcadm restart network/ssh

And you are done. They sure made managing services startup easier in Solaris 10 :-)

Popularity: 1% [?]

Related posts:

  1. Slow SSH login in SuSE Linux
  2. Using pkg-get on Solaris
  3. Solaris One-Liners
  4. Basic Network Configuration Under Solaris
  5. Solaris performance monitoring
  6. Working with ISO images on Solaris

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.