[systemd-devel] make systemd service takes cpu exclusively

Cao, XinX xinx.cao at intel.com
Thu Nov 27 04:44:50 PST 2014


                But it’s very strange, for I can’t find “sd_notify” or “sd_notifyf” in my program, but seems that notify type can still work. So are there any other functions able to do this ?
                Thanks~~

From: Mantas Mikulėnas [mailto:grawity at gmail.com]
Sent: Thursday, November 27, 2014 20:15
To: Cao, XinX
Cc: systemd-devel at lists.freedesktop.org
Subject: Re: [systemd-devel] make systemd service takes cpu exclusively

On Thu, Nov 27, 2014 at 12:56 PM, Cao, XinX <xinx.cao at intel.com<mailto:xinx.cao at intel.com>> wrote:
Hi,

        Yes, you are right. My service is defined as simple. And I changed it to notify, seems that I can make the other services  now successfully start after it finished startup. But I'm confused who will call "sd_notify" to send "READY=1"? I can't find the related code in system. Or the program itself?

Yes, it has to be added to your program. That's the whole point of Type=notify, after all – systemd can't know when your program is ready unless the program tells it so.

--
Mantas Mikulėnas <grawity at gmail.com<mailto:grawity at gmail.com>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20141127/c47bd8a6/attachment.html>


More information about the systemd-devel mailing list