This question is related to: reliable systemd service for autossh
I have a service which uses type=simple. Here the systemd docs:
Type=simple (default): systemd considers the service to be started up immediately. The process must not fork. Do not use this type if other services need to be ordered on this service, unless it is socket activated.
Imagine the service is in an endless loop or hangs.
How can systemd know if the service is ok or not?
Is there some kind if IPC between systemd and the service possible?
What I want: I want systemctl status foo-service
to tell me if the service is ok. That's different from "the linux-process of the service still exists".