Ok, I have found a little bit tacky solution that I have described in my post about systemd library:
systemd