From: "Thiyagarajan, Deva" <Deva_Thiyagarajan2@comcast.com>
To: "supervision@list.skarnet.org" <supervision@list.skarnet.org>
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: <SN6PR11MB26213A6FFE34F40F3E7C5A77B7379@SN6PR11MB2621.namprd11.prod.outlook.com> (raw)
In-Reply-To: <SN6PR11MB2621A3BF186AFFE07B28F598B7379@SN6PR11MB2621.namprd11.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 684 bytes --]
Hello,
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
--
Deva
next parent reply other threads:[~2021-06-08 16:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <SN6PR11MB2621A3BF186AFFE07B28F598B7379@SN6PR11MB2621.namprd11.prod.outlook.com>
2021-06-08 16:42 ` Thiyagarajan, Deva [this message]
[not found] <SN6PR11MB2621A3BF186AFFE07B28F598B7379@sn6pr11mb2621.namprd11.prod.outlook.com>
[not found] ` <SN6PR11MB26213A6FFE34F40F3E7C5A77B7379@sn6pr11mb2621.namprd11.prod.outlook.com>
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=SN6PR11MB26213A6FFE34F40F3E7C5A77B7379@SN6PR11MB2621.namprd11.prod.outlook.com \
--to=deva_thiyagarajan2@comcast.com \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).