How does Solaris SMF determine if something is to be in maintenance or to be restarted? -
i have daemon process wrote being executed smf. problem when error occurs, have fail code , need restart scratch. right sending sys.exit(0) (python), smf keeps throwing in maintenance mode.
i've worked smf enough know auto-restarts services (and lets others fail , have deal them this). how classify process 1 needs auto-restart? smf setting, method of failing, what?
presuming normal service manifest, suspect you're dropping maintenance because smf is restarting "too quickly" (which bit arbitrarily defined). svcs -xv
should tell if case. if is, smf restarting you, , you're exiting again rapidly , it's decided give until problem fixed (and you've manually svcadm clear
'd it.
i'd wondered if exiting 0 (and indicating success) may cause further confusion, doesn't appear will.
i don't think oracle solaris allows tune smf considers "too quickly".
Comments
Post a Comment