aaa
aaa

Reputation: 433

How to auto restart a service after crash on solaris 11?

On linux, in systemctl services by setting 'restart=always' restarts any service automatically in case it crashes, how can we do the same in svcs service on solaris? I just found option 'restart_on' for dependencies. This does not serve my requirement.

Upvotes: 1

Views: 498

Answers (1)

alanc
alanc

Reputation: 4170

This is the default mode in Solaris SMF - you get it by not marking a service as transient, periodic, scheduled, etc. The SMF documentation calls this "Contract or daemon service" in the SMF Service Models documentation.

Upvotes: 2

Related Questions