[systemd-devel] [PATCH 0/3] more watchdog patches

Lennart Poettering lennart at poettering.net
Tue Feb 7 06:29:54 PST 2012


On Fri, 03.02.12 21:14, Michael Olbrich (m.olbrich at pengutronix.de) wrote:

> The third patch. This is work in progress. Just the variables so far. I
> tried to follow other examples. Not sure if I did everything correctly.
> And I could not find any place to initialize the rate limiter with the
> configured values. They are available when querying via dbus but not in any
> initialization function that I could find. Where would I do that?
> 
> And can you elaborate reboot, reboot-force and reboot-immediate exactly
> mean?

reboot = just enqueue a job for reboot.target.

reboot-force = Just set m->exit_code to MANAGER_REBOOT. This will cause
the systemd event loop to terminate immeidately as your code returns
control to it, and then results in a reboot.

reboot-immediate = invoke reboot(LINUX_REBOOT_CMD_RESTART) right-away.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list