Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #163249
| From | Ansgar Burchardt <ansgar@43-1.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Debian stretch hiberante hooks |
| Date | 2016-01-18 20:50 +0100 |
| Message-ID | <qSnYl-5eq-7@gated-at.bofh.it> (permalink) |
| References | <qRzyz-53T-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi, kjonca@poczta.onet.pl (Kamil Jońca) writes: > There is laptop with "stretch/sid" on it. > I want umount all remote filesysems before suspending/hibernating it. > When google I found only solutions referring to pm-utils and > /etc/pm/sleep.d sripts. But this does not work for me. It looks like > pm-hibernate is not even calling. > So my question is: how can I put script to run before hibernate? Or what > should I read? When using systemd instead of pm-utils, one can hook into the "sleep.target" (or only "suspend.target" or "hibernate.target"). There is also the /lib/systemd/system-sleep directory, but its documentation[1] says its use should be considered a hack. There are some examples how to do so on [2]. Ansgar [1] <man:systemd-sleep(8)> [2] <https://wiki.archlinux.org/index.php/Power_management#Sleep_hooks>
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Debian stretch hiberante hooks kjonca@poczta.onet.pl (Kamil Jońca) - 2016-01-16 15:00 +0100
Re: Debian stretch hiberante hooks Charlie Kravetz <cjk@teamcharliesangels.com> - 2016-01-16 15:30 +0100
Re: Debian stretch hiberante hooks Ansgar Burchardt <ansgar@43-1.org> - 2016-01-18 20:50 +0100
[SOLVED] Re: Debian stretch hiberante hooks kjonca@poczta.onet.pl (Kamil Jońca) - 2016-01-18 21:40 +0100
Re: [SOLVED] Re: Debian stretch hiberante hooks Ansgar Burchardt <"Ansgar Burchardt"@43-1.org> - 2016-01-18 22:10 +0100
Systemd best practices (was: [SOLVED] Re: Debian stretch hiberante hooks) kjonca@poczta.onet.pl (Kamil Jońca) - 2016-01-20 10:20 +0100
csiph-web