Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #275655

Re: Automatic suspend-to-ram solution for Workstations

From Henrik Ahlgren <pablo@seestieto.com>
Newsgroups linux.debian.user
Subject Re: Automatic suspend-to-ram solution for Workstations
Date 2024-12-13 18:30 +0100
Message-ID <JThEd-gFTJ-3@gated-at.bofh.it> (permalink)
References <JR8F3-eufp-1@gated-at.bofh.it> <JTh1v-gFpM-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, 2024-12-13 at 17:44 +0100, Jan Claeys wrote:
> Assuming this backup is started by an automated system under control of
> the sysadmins, and not by the users themselves, it's probably easiest
> to use some sort of "lock" that is set by the backup process itself (or
> that you wrap around it).

Set up a systemd timer job for automatic backups, using WakeSystem=true
to make RTC resume the system if it is suspended during when the backup
is scheduled to run. Then wrap the backup command with "systemd-inhibit
--what=idle" to keep the system awake during the backup process.

The only problem I've seen with this setup is that even with 

	After=network-online.target nss-lookup.target
	Wants=network-online.target nss-lookup.target

the network isn't always fully online when the job starts. Does anyone
know a reliable way of ensuring that with systemd configuration
(without workarounds like sleep-before-starting)? Any why doesn't
network-online.target work when resuming from sleep?

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Automatic suspend-to-ram solution for Workstations Felix Natter <fnatter@gmx.net> - 2024-12-07 20:30 +0100
  Re: Automatic suspend-to-ram solution for Workstations Will Mengarini <seldon@eskimo.com> - 2024-12-07 21:20 +0100
  Re: Automatic suspend-to-ram solution for Workstations Anssi Saari <anssi.saari@debian-user.mail.kapsi.fi> - 2024-12-09 14:00 +0100
    Re: Automatic suspend-to-ram solution for Workstations Max Nikulin <manikulin@gmail.com> - 2024-12-10 04:20 +0100
  Re: Automatic suspend-to-ram solution for Workstations Jan Claeys <lists@janc.be> - 2024-12-13 17:50 +0100
    Re: Automatic suspend-to-ram solution for Workstations Henrik Ahlgren <pablo@seestieto.com> - 2024-12-13 18:30 +0100

csiph-web