<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I can't really change anything about the way that the Node Manager does it's job. That all takes place outside of systemd. If I used the PIDFile option in the original systemd service (executing the WLST process), let's call this weblogic.service, and the PIDFile pointed to the PID file created by the final Java process, would that work or does the process that I'm ultimately starting have to descend directly from whatever it is that the unit file executes?<br><br><div><hr id="stopSpelling">Date: Thu, 30 Jul 2015 23:47:03 +0300<br>Subject: Re: [systemd-devel] Complicated SysVInit Migration<br>From: grawity@gmail.com<br>To: ljkimmel99@hotmail.com<br>CC: systemd-devel@lists.freedesktop.org<br><br><div dir="ltr"><div class="ecxgmail_extra"><div class="ecxgmail_quote">On Thu, Jul 30, 2015 at 9:40 PM, Lesley Kimmel <span dir="ltr"><<a href="mailto:ljkimmel99@hotmail.com" target="_blank">ljkimmel99@hotmail.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">All;<br><br>I'm struggling with figuring out how to migrate some SysVInit scripts to systemd. Specifically, this service launches WebLogic Managed Server (Java) instances Let me describe the process flow of my current service to you:<br><br>-The init service/script launches a Java process called WLST which executes a simple script<br>-This WLST process connects to an already running Java process called the Node Manager and issues a start command for the application server it wishes to start<br>-The Node Manager process executes a shell script as a subprocess. This shell script sets up a bunch of environment variables, etc.<br>-Ultimately the shell script launches a Java process which is a child of the shell script.<br>-When this Java process reports itself as running, the initial WLST Java process exits.<br>-In the end the actual service/process that we started, and want to manage, is actually the GRANDCHILD of a completely separate process from the initial Java process that systemd launched. How, would systemd track that process?<br></div></div></blockquote><div><br></div><div>systemd would see it as an extra process belonging to NodeManager.service, nothing more.</div><div><br></div><div>If you want systemd to track it as an independent service, go back to step #3 (where the Node Manager executes a shell script), and make that shell script merely run "systemctl start ..." instead of creating the new instance directly. (Make a template foo@.service unit for the WLMS instances.)</div></div><div><br></div>-- <br><div><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div></div> </div></body>
</html>