[systemd-devel] Query regarding NOTIFY_SOCKET
Raghavendra. H. R
raghuhr84 at gmail.com
Tue Nov 8 11:31:59 UTC 2016
Hi All,
I'm a newbie in Systemd init system and I'm exploring sd_notify which is
basically used for notification purpose in SystemD.
I have created one unit file which is of type "notify" and in my
application I have written sd_notify(0, "READY=1"); from which SystemD can
be notified that my process in totally up and running.
I getting return value of '0' from sd_notify and my service file terminates
after 30 secs of default timeout.
Need help in understanding what value should be set in the environment
varaible NOTIFY_SOCKET.
But there's no much information/documentation available on NOTIFY_SOCKET.
Below given is my Service file.
*[Unit]*
*Description=Sd_notify example*
*[Service]*
*ExecStart=/etc/Myapp*
*[Install]*
*WantedBy=multi-user.target*
In *Myapp *code I have added the sd_notify(0, "READY=1") and getting return
value of 0.
Kindly provide your inputs regarding NOTIFY_SOCKET.
--
Regards,
Raghavendra. H. R
(Raghu)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20161108/a396d5b3/attachment.html>
More information about the systemd-devel
mailing list