tag:blogger.com,1999:blog-6406593750327945950.post2735094712954971294..comments2022-12-04T20:47:13.182-08:00Comments on Igor Minar's Blog: Improving Satan and Solaris SMFIgor Minarhttp://www.blogger.com/profile/03520548417275543432noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6406593750327945950.post-17378114863561142862010-06-02T04:14:01.425-07:002010-06-02T04:14:01.425-07:00@rama, my fork does svcadm restart first, then sle...@rama, my fork does svcadm restart first, then sleep, then if no restart happened uses kill -9 to force the restart. I prefer svcadm restart over regular kill.<br /><br />Also satan's activity is being logged in the SMF log for satan's service. Run "svcs -x satan" to see the log path.Igor Minarhttps://www.blogger.com/profile/03520548417275543432noreply@blogger.comtag:blogger.com,1999:blog-6406593750327945950.post-65475358516761163762010-06-01T22:11:44.288-07:002010-06-01T22:11:44.288-07:00+1 on Martin's comment.
Also it would be nic...+1 on Martin's comment. <br /><br />Also it would be nicer if Satan tried a kill, sleep, check if still running, kill -9 if still alive type thing. Forced kills are often unnecessary and may leave behind cruft that would prevent a clean restart (lock files for example.) <br /><br />I think a log of restart event might be a good idea too. Saving it locally would be the easiest/most universal.ramahttps://www.blogger.com/profile/11271944299361079121noreply@blogger.comtag:blogger.com,1999:blog-6406593750327945950.post-44298545815581670252010-06-01T05:12:45.238-07:002010-06-01T05:12:45.238-07:00yeah, I was thinking about that. originally Satan ...yeah, I was thinking about that. originally Satan could be run as webservd:webservd because it used only kill -9 on webservd processes, with svcadm restart you need to be root or have a special role.Igor Minarhttps://www.blogger.com/profile/03520548417275543432noreply@blogger.comtag:blogger.com,1999:blog-6406593750327945950.post-69228853685809092822010-06-01T04:17:36.094-07:002010-06-01T04:17:36.094-07:00Nice! OpenSolaris FTW!
You should add a user meth...Nice! OpenSolaris FTW!<br /><br />You should add a user method credential to the Satan smf service, so you can limit the damage he can do :)<br /><br />E.g. <br /><br />But then you need to grant the daemon user privilege to restart the smf service also.Martinhttp://blog.codenursery.com/noreply@blogger.com