Why I love Solaris' SMF
Posted by victori
Categories: solaris
Why I love Solaris' SMF's RSS feed
[1] comments
Ill keep it short; SMF > rc.d
# ps -ef | grep -i thttpd
root 3919 6938 0 15:45:16 pts/6 0:00 grep -i thttpd
webservd 18619 592 0 Jun 11 ? 0:54 /opt/extra/sbin/thttpd -C thttpd.conf
Now...
# kill -9 18619 # ps -ef | grep -i thttpd webservd 4017 592 0 15:47:33 ? 0:00 /opt/extra/sbin/thttpd -C thttpd.conf
Automatic service restarts. Solaris is like a nice Cadillac compared to Linux.
Joe
PostedI do wish SMF had the option to restart a service if it's taking up too much memory. I guess I could write my own program that looked at the amount of memory that was being used and then kill it (and then have SMF automatically restart it).