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)
_______________________________________________ systemd-devel mailing list firstname.lastname@example.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel