Systemd – run a script before system shutdown

Here systemd will execute /srv/app_shutdown_script.sh before the system reboots. Refer to the following steps. Create a systemd Unit file with the following content. # cat /etc/systemd/system/exec-before-shutdown.service [Unit] Description=Shutdown run script…

Read more »