[systemd-devel] Additional error details when resource limits are exceeded
Peter Hoeg
peter at hoeg.com
Wed Dec 23 06:55:13 PST 2015
Hi,
>Type=simple cannot detect when a service is ready. Systemd simply
>of teamviewerd but with service inter-dependencies this becomes
>important.
>
>Type=simple considers the service up immediatly thus triggering
>dependent service for immediate execution while Type=forking considers
>the service up only when appearance of the PIDFile signals so, and
>only then schedules starting dependent services.
>
>So, Type=forking is the only way to have synchronization points between
>service that depend on each other.
In all fairness, the presence of a PID really doesn't say anything either about availability. The only way to be sure is to use Type=Notify with a cooperating daemon.
>> I haven't looked at the code, but again, if systemd knows that some
>> limit is being exceeded, wouldn't it make sense to say which one?
>
>Probably yes... Maybe Lennart pays attention?
Otherwise that might be fun xmas project for an enterprising young coder!
--
Regards,
Peter
More information about the systemd-devel
mailing list