supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* svlogd log rotation
@ 2019-12-12 14:25 Raghu
       [not found] ` <4db43fdb-4b78-86b8-eeaa-af22397bd81e@uni-bremen.de>
  0 siblings, 1 reply; 2+ messages in thread
From: Raghu @ 2019-12-12 14:25 UTC (permalink / raw)
  To: supervision

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

I have redirected the svlogd log file my custom name instead of current in
my run script as below.
touch /testlogs/logs/Y5Consolelog.txt.0
exec svlogd -tt  /testlogs/logs/ Y5Consolelog.txt.0

And my config file as below:
s10000
n2

I do see the log file getting updated but it not getting rotated when the
size limit is reached. I don't see the old log file with timestamp appended
to it after rotation which would actually happen to a current file.

Can you please let me know if I'm missing anything?
Thank you.

-- 
Thanks
Raghu
SAVE TREES..GO GREEN

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: svlogd log rotation
       [not found] ` <4db43fdb-4b78-86b8-eeaa-af22397bd81e@uni-bremen.de>
@ 2019-12-13 15:05   ` Raghu
  0 siblings, 0 replies; 2+ messages in thread
From: Raghu @ 2019-12-13 15:05 UTC (permalink / raw)
  To: Martin Castillo; +Cc: supervision

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

Sorry, please ignore.


On Thu, Dec 12, 2019 at 4:15 PM Martin Castillo <castilma@uni-bremen.de>
wrote:

> Hi,
>
> On 12.12.19 15:25, Raghu wrote:
> > I have redirected the svlogd log file my custom name instead of current
> in
> > my run script as below.
> > touch /testlogs/logs/Y5Consolelog.txt.0
> > exec svlogd -tt  /testlogs/logs/ Y5Consolelog.txt.0
>
> I have never heard of this feature and couldn't find anything on the
> manpage. Running these 2 commands gets me
> $ svlogd -tt "$(realpath log)"/ mylog.0
> svlogd: warning: unable to open log directory: mylog.0: file does not exist
>
> and the current file is still called 'current'.
> I have artix' linux runit 2.1.2-15 and svlogd version
> 5e55a90e0a1b35ec47fed3021453c50675ea1117.
>
> What version are you running?
>
> Marti
> >
> > And my config file as below:
> > s10000
> > n2
> >
> > I do see the log file getting updated but it not getting rotated when the
> > size limit is reached. I don't see the old log file with timestamp
> appended
> > to it after rotation which would actually happen to a current file.
> >
> > Can you please let me know if I'm missing anything?
> > Thank you.
> >
>
> --
> GPG: 7FDE 7190 2F73 2C50 236E  403D CC13 48F1 E644 08EC
>


-- 
Thanks
Raghu
SAVE TREES..GO GREEN

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-13 15:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-12 14:25 svlogd log rotation Raghu
     [not found] ` <4db43fdb-4b78-86b8-eeaa-af22397bd81e@uni-bremen.de>
2019-12-13 15:05   ` Raghu

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).