<div dir="ltr">Hi Team,<div><br></div><div>I have two services which are dependent on each other and are working fine at boot up but at shutdown / reboot , the processes get killed as shutdown got initated.</div><div><br></div><div>Services are running fine in particular order but processes got killed .I have enabled lingering on both users and changed confgiuration in logind.conf to KillUserProcesses=no but still issue is same </div><div><br></div><div>##############</div><div>Systemd service files content are below </div><div><br></div><div>cat /etc/systemd/system/grid.service<br>[Unit]<br>Description=Service to auto start Oracle ASM application<br>Before=rdbms.service<br>After=syslog.target network.target nfs-mountd.service autofs.service systemd-user-sessions.service system.slice<br>[Service]<br>Type=simple<br>TimeoutSec=5min<br>User=grid<br>Group=dba<br>ExecStart=/opt/admin/bin/asm<br>ExecStop=/opt/admin/bin/asm_stop<br>RemainAfterExit=yes<br>[Install]<br>WantedBy=multi-user.target<br></div><div><br></div><div><br></div><div><br></div><div>cat /etc/systemd/system/rdbms.service<br>[Unit]<br>Description=Service to auto start Oracle RDBMS application<br>Requires=grid.service<br>After=grid.service syslog.target network.target nfs-mountd.service autofs.service systemd-user-sessions.service system.slice<br>[Service]<br>Type=simple<br>TimeoutSec=5min<br>User=osarahn9<br>Group=dba<br>ExecStart=/opt/admin/bin/rdbms<br>ExecStop=/opt/admin/bin/rdbms_stop<br>RemainAfterExit=yes<br>[Install]<br>WantedBy=multi-user.target grid.service<br></div><div><br></div><div><br></div><div>let me know if my configuration is faulty or what I have missed so that shutdown should be graceful for services and processes will be shutdown with systemd custom service?</div><div><br></div><div>I want first rdbms.service should be called and get process stopped before grid.services (it seems systemd are killing user.slices processes) and in startup-inverse should be followed .</div><div>Please help .</div><div><br></div><div>Regards,</div><div>Kamal Rathi</div></div>