SMF: Enable apache [Solaris]

As of Solaris 9, Sun introduced a new utility called Service Management Facility. This utility is now (Solaris 11) the preferred method of managing your services. While the /etc/rc.X/ directories are still around and work they are considered legacy.

Here is a quick example of enabling apache to get you started.

# svcs -a | grep http  
disabled 10:23:11 svc:/network/http:apache22  
# svcadm enable http  
# svcs -a | grep http  
online 10:30:23 svc:/network/http:apache22

This will enable apache for not only your live session but will also enable it for boot as well.

About Benjamin

Benjamin is a Infrastructure and Software Engineer. On this blog he writes about Linux, Docker, Programming as well as other Systems topics.

Learn more about Linux

If you liked this article, check out Benjamin's book: Red Hat Enterprise Linux Troubleshooting Guide. Where you can learn a lot more about troubleshooting Linux systems. This book is filled with tips and techniques he has learned over years of managing mission critical systems.

Related