How do Application manager detect if a windows service has been shut down?

How do Application manager detect if a windows service has been shut down?

How do Application manager detect if a windows service has been shut  down?

How do the shut down action trigger the alarm?
                New to ADManager Plus?

                  New to ADSelfService Plus?