Skip to Content

systemctl reboot

Dear Linux/SAP experts,

When ever we execute the command systemctl reboot - the first step it does is it kills all SAP processes.

Later sapinit services runs to start SAP (from /etc/init.d location).

My requirements are below and tried several options, none worked for it.

Instead of Reboot command killing the SAP processes, I needed to shutdown SAP processes using sapstop command or sapinit stop command thru a service or embedding in to an existing script. Is there any way to accomplish this?

Note: I created new services under /etc/systemd/system or /usr/lib/systemd/system_shutdown or /usr/lib/systemd/system to stop SAP before the reboot command killing the processes and none worked, reason being reboot command already killed the SAP processes before it reaching my service/script.

Any ideas or exeert's suggestions?

Helps will be greatly appreciated.

thanks and best regards,


[Unit] Description=Before Shutting Down


RequiresMountsFor=/usr/sap /home /sapmnt / network.service

[Service] KillUserProcesses=no









Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Feb 21 at 12:59 PM

    Hi Kannan,

    Here is an answer from SAP support for the same issue.

    BTW, it did not worked for us.

    Please try and publish your results

    "with system, the sapinit script (and processes started by it) are placed in user slice. Normally system allows only a 90 seconds for these processes to stop before killing them.

    SUSE provides a workaround for such situation:

    The KBA is described in the context of HA cluster, but it can be applied in the same way for standalone systems as well. I recommend you to try it first in a test environment."



    Add comment
    10|10000 characters needed characters exceeded