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:graw...@gmail.com]
Sent: Thursday, November 27, 2014 20:15
To: Cao, XinX
Cc: systemd-devel@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....@intel.com<mailto:xinx....@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 <graw...@gmail.com<mailto:graw...@gmail.com>>
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to