[systemd-devel] Missing PropertiesChanged signal for service start

ashitha v ash15489 at gmail.com
Tue Feb 12 03:50:49 UTC 2019


Hi,

I have a service file as follows:

[Unit]
Description= "Daemon description"
After=a.service
<https://opengrok-evo.juniper.net/source/s?path=mgd.service&project=EVO_TOT>
b.service <https://opengrok-evo.juniper.net/source/s?path=mgd-api.service&project=EVO_TOT>
c.service <https://opengrok-evo.juniper.net/source/s?path=jsd.service&project=EVO_TOT>
OnFailure=failure_handler@%p.service
<https://opengrok-evo.juniper.net/source/s?path=p.service&project=EVO_TOT>

[Service]
WorkingDirectory=/usr/sbin
<https://opengrok-evo.juniper.net/source/s?path=/usr/sbin&project=EVO_TOT>
ExecStartPre=/bin/sleep
<https://opengrok-evo.juniper.net/source/s?path=/bin/sleep&project=EVO_TOT>
30
ExecStart=<path-to-binary>


When this service starts I expected a signal indicating state=active.
When I reboot the system multiple times, the signal indicating
"active" is missing some times.

I got the signal ActiveState=activating, SubState=start-pre at all
times. But signal indicating ActiveState="active" and
SubState="running" was missing for some reboots.

The service is running and shows active state all the time. What is
reason for missing signal? I am also checking if the sleep in the
ExecStartPre is required for this

service. I am wondering if that has something to do with the missing signal.


Thanks
Ashitha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20190211/9f80c674/attachment.html>


More information about the systemd-devel mailing list