From: yianiris <yianiris@disroot.org>
To: supervision@list.skarnet.org
Subject: Re: Logging in a web server context
Date: Sat, 13 Jun 2020 22:29:07 +0300 [thread overview]
Message-ID: <6bc0a7fe-7fd9-55ee-1f7e-fe27087b90cb@disroot.org> (raw)
In-Reply-To: <20200613145127.632450b0@mydesk.domain.cxm>
This is fungalnet with a different email
I am not 100% sure if we are talking about the same things, but here
some of the fun we are having with Eric Vidal's 66 at obarun and void:
Tree root is a tree of services, we can have many trees. Each service
has its own log. The 66-inservice -p14 dhcpcd command gives the last 14
lines of the log of the service. Except for oneshot services and tty
every service supervised by s6 gets its own log:
Here is a sample output: (ip4/6 addresses scrambled)
oba@runner ~ % sudo 66-intree -zg root
Name : root
Initialized : yes
Enabled : yes
Starts after : None
Current : yes
Allowed : root
Symlinks : svc->source db->source
Contents : /
├─(1165,Enabled,classic) ntpd-log
├─(1168,Enabled,classic) ntpd
├─(1172,Enabled,classic) dhcpcd-log
├─(1169,Enabled,classic) tty@tty2
├─(1171,Enabled,classic) tty@tty1
└─(1173,Enabled,classic) dhcpcd
oba@runner ~ % sudo 66-inservice -v2 -p14 dhcpcd
Name : dhcpcd
Version : 0.2.0
In tree : root
Status : enabled, up (pid 1173) 38887 seconds
Type : classic
Description : dhcpcd daemon
Source : /usr/lib/66/service/dhcpcd
Live : /run/66/scandir/0/dhcpcd
Dependencies : dhcpcd-log
External dependencies : None
Optional dependencies : None
Start script : execl-cmdline -s { dhcpcd ${cmd_args} -f
${conf_dir}/${conf_file} }
Stop script : execl-cmdline -s { dhcpcd ${cmd_args_stop} }
Environment source : /etc/66/conf/dhcpcd/0.2.0
Environment file : cmd_args=!-B
cmd_args_stop=!-x
conf_dir=!/etc
conf_file=!dhcpcd.conf
Log name : dhcpcd-log
Log destination : /var/log/66/dhcpcd
Log file :
2020-06-13 21:17:16.955071365 eth0: fe80::fgf0:faff:fea4:4331 is
unreachable
2020-06-13 21:17:17.617629075 eth0: fe80::fgf0:faff:fea4:4331 is
reachable again
2020-06-13 21:17:17.872363985 eth0: soliciting an IPv6 router
2020-06-13 21:17:25.755133469 eth0: fe80::fgf0:faff:fea4:4331 is
unreachable
2020-06-13 21:17:26.729551295 eth0: soliciting an IPv6 router
2020-06-13 21:17:26.737844183 eth0: fe80::fgf0:faff:fea4:4331 is
reachable again
2020-06-13 21:36:32.380456414 eth0: fe80::fgf0:faff:fea4:4331: no
longer a default router
2020-06-13 21:36:32.380766427 eth0: deleting address
2v02:2149:862f:9d00:1a03:73ff:fe2b:30de/64
2020-06-13 21:36:32.381024234 eth0: deleting route to
2v02:2149:862f:9d00::/64
2020-06-13 21:36:32.381127805 eth0: deleting default route via
fv80::ce03:faff:fea4:4331
2020-06-13 21:36:34.051845089 eth0: adding address
2v02:2149:862f:9d00:1a03:73ff:fe2b:30de/64
2020-06-13 21:36:34.052160364 eth0: adding route to
2v02:2149:862f:9d00::/64
2020-06-13 21:36:34.083391650 eth0: adding default route via
fe80::ce03:faff:fea4:4331
log files stored in those /var/log/xx/ directories go by the default
name "current". There is also a /run/66/log/0/current of the booting
steps log with adjustable verbosity.
66 just sets things up for s6 to do all the work.
next prev parent reply other threads:[~2020-06-13 19:29 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-13 8:41 Carl Winbäck
2020-06-13 10:04 ` Casper Ti. Vector
2020-06-13 10:50 ` Carl Winbäck
2020-06-13 11:32 ` Casper Ti. Vector
2020-06-13 12:40 ` Carl Winbäck
2020-06-13 10:59 ` Jan Braun
2020-06-13 11:17 ` Carl Winbäck
2020-06-13 12:42 ` Laurent Bercot
2020-06-13 12:53 ` Laurent Bercot
2020-06-14 12:06 ` Carl Winbäck
2020-06-14 12:02 ` Carl Winbäck
[not found] ` <20200613100522.jvixsd6fnokz3fh2@bstg>
2020-06-13 12:17 ` Carl Winbäck
2020-06-13 12:30 ` Carl Winbäck
2020-06-13 18:51 ` Steve Litt
2020-06-13 19:29 ` yianiris [this message]
2020-06-15 4:19 ` Colin Booth
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=6bc0a7fe-7fd9-55ee-1f7e-fe27087b90cb@disroot.org \
--to=yianiris@disroot.org \
--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).