<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><font size="2"><span style="font-size:10pt;"><font size="2">Hi<font size="2">,<br>
<br>
I have a unit file which does some<font size="2">thing like this:<br>
<font size="2">In Exec<font size="2">Start<font size="2">Pre -> Start A</font></font></font><br>
</font></font></font></span></font>
<div>In ExecStart -> Start B<br>
<br>
Now the thing is B depends on A to function correctly and A is a binary itself. The behavior I am seeing is a little obvious but still I thought there might be a way around this. When the unit is started A is launched correctly but then after some time it gets
killed with a term signal 15 and this happens before B is started and hence when B is launched it fails. Here's what my unit file looks like...<br>
<br>
[Unit]<br>
Description=B<br>
After=xyz.service<br>
<br>
[Service]<br>
EnvironmentFile=-/tmp/my.env<br>
ExecStartPre=/bin/sh -c 'echo "ADDRESS=`A --print-path`" > /tmp/my.env'<br>
ExecStart=/usr/bin/B<br>
<br>
[Install]<br>
WantedBy=graphical.target<br>
<br>
Any suggestions here would be highly appreciated.<br>
<br>
<div style="font-family:Tahoma; font-size:13px"><span lang="en-US">
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font size="2"><span style="font-size:10pt">BR,</span></font></span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font size="2"><span style="font-size:10pt">Awais</span></font></span></font></div>
</span></div>
</div>
</div>
</body>
</html>