<div dir="ltr"><br clear="all"><div><div dir="ltr">Hi, </div><div dir="ltr"><br></div><div dir="ltr">I have a service file as follows: <div><pre style="white-space:pre-wrap;border:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">[Unit]
Description= "Daemon description"
After=<a href="https://opengrok-evo.juniper.net/source/s?path=mgd.service&project=EVO_TOT" target="_blank" style="color:rgb(32,32,98);text-decoration-line:none">a.service</a> b<a href="https://opengrok-evo.juniper.net/source/s?path=mgd-api.service&project=EVO_TOT" target="_blank" style="color:rgb(32,32,98);text-decoration-line:none">.service</a> c<a href="https://opengrok-evo.juniper.net/source/s?path=jsd.service&project=EVO_TOT" target="_blank" style="color:rgb(32,32,98);text-decoration-line:none">.service</a>
OnFailure=failure_handler@%<a href="https://opengrok-evo.juniper.net/source/s?path=p.service&project=EVO_TOT" target="_blank" style="color:rgb(32,32,98);text-decoration-line:none">p.service</a>
[Service]
WorkingDirectory=<a href="https://opengrok-evo.juniper.net/source/s?path=/usr/sbin&project=EVO_TOT" target="_blank" style="color:rgb(32,32,98);text-decoration-line:none">/usr/sbin</a>
ExecStartPre=<a href="https://opengrok-evo.juniper.net/source/s?path=/bin/sleep&project=EVO_TOT" target="_blank" style="color:rgb(32,32,98);text-decoration-line:none">/bin/sleep</a> 30
ExecStart=<path-to-binary></pre><pre style="white-space:pre-wrap;border:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;border:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">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. </font></pre><pre style="white-space:pre-wrap;border:0px;margin-top:0px;margin-bottom:0px"><font face="arial, helvetica, sans-serif" style="color:rgb(0,0,0)">I got the signal </font><font color="#000000" face="arial, helvetica, sans-serif">ActiveState=activating, SubState=start-pre at all times. But signal indicating ActiveState="active" and SubState="running" was missing for some reboots. </font></pre><pre style="white-space:pre-wrap;border:0px;margin-top:0px;margin-bottom:0px"><font color="#000000" face="arial, helvetica, sans-serif">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</font></pre><pre style="white-space:pre-wrap;border:0px;margin-top:0px;margin-bottom:0px"><font color="#000000" face="arial, helvetica, sans-serif">service. I am wondering if that has something to do with the missing signal. </font></pre><pre style="white-space:pre-wrap;border:0px;margin-top:0px;margin-bottom:0px"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></pre><pre style="white-space:pre-wrap;border:0px;margin-top:0px;margin-bottom:0px"><font color="#000000" face="arial, helvetica, sans-serif">Thanks
Ashitha </font></pre><pre style="white-space:pre-wrap;border:0px;margin-top:0px;margin-bottom:0px"><br></pre></div></div></div></div>