supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: "Thiyagarajan, Deva" <>
To: "" <>
Subject: Suspend s6-log writing to log file and resume it back after sometime
Date: Tue, 8 Jun 2021 16:42:15 +0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

[-- Attachment #1: Type: text/plain, Size: 684 bytes --]


I am running s6 on an embedded platform and use s6-log for logging processes’ output to hard disk.

I have a requirement where I need to pause logging to hard disk when the device is put to standby/sleep mode (basically to reduce hard disk usage and spin it down) and once the device is back UP from sleep, I want the logging to resume since the point it paused.

Basically during the sleep, s6-log should just hold the logs in memory and when device is UP it should start dumping the logs as usual.

Any pointers on how I can go about this? Is there any hack or tricks that could be done in s6-log to achieve this?

Thanks in advance



       reply	other threads:[~2021-06-08 16:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <>
2021-06-08 16:42 ` Thiyagarajan, Deva [this message]
     [not found] <>
     [not found] ` <>
2021-06-08 20:02   ` Laurent Bercot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \
    --subject='Re: Suspend s6-log writing to log file and resume it back after sometime' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).