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.

Avatar
Benjamin Cane
Principal Engineer, Vice President

Benjamin Cane is Principal Engineer at American Express. He has more than 16 years of experience with roles in both systems and software engineering. He leverages both his systems and software skills to build end-to-end platforms. Platforms, purpose built for performance and resiliency. Benjamin is also the author of Red Hat Enterprise Linux - Troubleshooting Guide (2015, Packt Publishing), and he has published many popular articles on topics such as Linux, Docker, Python, Go and Performance Tuning. Thoughts and Opinions expressed in my articles are my own.

Next
Previous

Related