On Sat, Feb 28, 2015 at 8:11 AM, Johannes Kastl <mail@ojkastl.de> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 28.02.2015 Cristian Rodríguez wrote:
Make the service of Type=notify , execute systemd-notify --ready when the task has completed and then exit 0; Make the display-manager.service start After=yourservice..
Forgive me if I ask:
My setup seems to work with type=oneshot. What is the advantage of using notify? I just found descriptions, that this type exists, but found no advantages or disadvantages.
In this case, the services ordered After= your custom service will not start until it PID1 gets notifed that the startup of your service is complete.
Note that if your service takes a while, it might timeout, so you need to adjust the timeouts accordingly, or better.. find a way that does not require this hack.
I thought "TimeoutSec=0" (or 600 or ...) was exactly for this kind of long running commands?
TimeoutStartSec= in this case. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org