[systemd-devel] make systemd service takes cpu exclusively

Andrei Borzenkov arvidjaar at gmail.com
Thu Nov 27 06:57:18 PST 2014


В Thu, 27 Nov 2014 12:44:50 +0000
"Cao, XinX" <xinx.cao at intel.com> пишет:

>                 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 ?

Sorry, I do not understand this. Could you try to rephrase?

>                 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>>



More information about the systemd-devel mailing list