On Monday 11 December 2006 05:19, Leendert Meyer wrote:
> Hello,

(I forgot to mention that I was talking about 10.2)

> In 10.1's /etc/sysconfig/powersave/sleep, I had to set two
> veriables for my system:
>
>   SUSPEND2DISK_SHUTDOWN_MODE="shutdown"
>
> and
>
>   SUSPEND2DISK_RESTART_SERVICES="ntp network"
>
> The replacement for the first was easy: add the following line
>
>   shutdown method = shutdown
>
> to /etc/suspend.conf. Now my system resumes again with a single
> tap on a key.
>
> But I could not figure out an easy way to stop and restart some
> services, i.e. a replacement for SUSPEND2DISK_SHUTDOWN_MODE. I
> looked in /usr/share/doc/packages/{suspend,pm-utils},
> http://en.opensuse.org/Pm-utils.
>
> Stopping/starting services is briefly mentioned in the
> pm-utils/README, but nothing on how to deal with it.
>
> Am I overlooking something?

After peeking around, I found a solution:

I created an executable script /etc/pm/hooks/09network, with the 
following contents:

---8<---
#!/bin/bash

. /etc/pm/functions

case "$1" in
        hibernate|suspend)
                stopservice ntp
                stopservice network
                ;;
        thaw|resume)
                restartservice network
                restartservice ntp
                ;;
        *)
                ;;
esac

exit $?
--->8---

And I have the behavior back as it was in 10.1.

Cheers,

Leen
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to