From 1fe13fe144d26cf827cc06b2ba164541cd4e29e9 Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Sun, 5 Oct 2008 18:39:13 -0500 Subject: Document hook ordering convention in the pm-action man page. --- man/pm-action.xml | 47 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 3 deletions(-) (limited to 'man') diff --git a/man/pm-action.xml b/man/pm-action.xml index f1ec7a5..e1fa4bf 100644 --- a/man/pm-action.xml +++ b/man/pm-action.xml @@ -349,9 +349,9 @@ directory by putting a non-executable file in /etc/pm/sleep.d, or by adding it to the HOOK_BLACKLIST configuration variable. - - - + + + /var/log/pm-suspend.log @@ -362,6 +362,47 @@ + + + SLEEP HOOK ORDERING CONVENTION + + + 00 - 49 + + User and most package supplied hooks. If a hook assumes + that all of the usual services and userspace + infrastructure is still running, it should be here. + + + + + 50 - 74 + + Service handling hooks. Hooks that start or stop a + service belong in this range. At or before 50, hooks + can assume that all services are still enabled. + + + + + 75 - 89 + + Module and non-core hardware handling. If a hook + needs to load/unload a module, or if it needs to + place non-video hardware that would otherwise break + suspend or hibernate into a safe state, it belongs in + this range. At or before 75, hooks can assume all + modules are still loaded. + + + + + 90 - 99 + + Reserved for critical suspend hooks. + + + -- cgit v1.2.3