Skip to contentSkip to conversation

how to get called at shutdown

DISCUSSION Tania Boak 1 participant 1 message Jun 9, 2000

lore
Share & tools
lore

Tania Boak

author
#0 lore raw

Hi all

I have a function I want to have called once at shutdown. Can anyone tell me a good way to do that?

I tried register_reboot_notifier() but for some reason I don't yet understand my notification handler does not get called unless I use shutdown with the -n (bypass init) option. I would like something that works regardless of the command used to reboot or shutdown.

Thanks,
Tania

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/