Reputation: 433
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
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