<div dir="ltr">Thanks Reindl for the response, but from the man page of systemd.service even oneshot is a kind of simple service as default is RemainAfterExit=no for simple.<div>But if we talk about the original problem that processes are killed even if ordering of services is there, .</div><div>from what it seems that user.slice is killed before my services will shut down processes gracefully.</div><div>I have tried also putting user.slice as After= dependency but result is the same.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 15, 2020 at 3:18 AM Reindl Harald <<a href="mailto:h.reindl@thelounge.net">h.reindl@thelounge.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
Am 15.06.20 um 10:01 schrieb Kamal Rathi:<br>
> Hi Team,<br>
> <br>
> I have two services which are dependent on each other and are working<br>
> fine at boot up but at shutdown / reboot , the processes get killed as<br>
> shutdown got initated.<br>
> <br>
> Services are running fine in particular order but processes got killed<br>
> .I have enabled lingering on both users and changed confgiuration in<br>
> logind.conf to KillUserProcesses=no but still issue is same <br>
> <br>
> let me know if my configuration is faulty or what I have missed so that<br>
> shutdown should be graceful for services and processes will be<br>
> shutdown with systemd custom service?<br>
> <br>
> I want first rdbms.service should be called and get process stopped<br>
> before grid.services (it seems systemd are killing user.slices<br>
> processes) and in startup-inverse should be followed .<br>
> Please help<br>
<br>
i would start with thinking about why the useless "RemainAfterExit=yes"<br>
is in a service with type=simple<br>
<br>
this is nice fot type=oneshot but makes no sense here when you want to<br>
order things running long living processes<br>
<br>
RemainAfterExit=<br>
Takes a boolean value that specifies whether the service shall be<br>
considered active even when all its processes exited. Defaults to no.<br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div>