[systemd-devel] Shutdown notify

Michal Witanowski m.witanowski at samsung.com
Tue Aug 19 04:34:59 PDT 2014

Hi all,

I would like to know if there is a possibility to get notified about
upcoming shutdown/restart. For example:

.         Somebody executes "systemctl reboot" / "systemctl poweroff"

.         A callback function is called in my service before SIGTERM is
triggered on ANY service.

.         After my callback returns, the systemd continues the
reboot/shutdown process.


I suppose it's possible via dbus API, but I couldn't find any examples
connected with this scenario.

Thanks in advance.


Best regards,



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140819/d9352c1c/attachment-0001.html>

More information about the systemd-devel mailing list