supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* S6 logging
@ 2021-03-09  8:14 billa chaitanya
  2021-03-09 10:55 ` Laurent Bercot
  0 siblings, 1 reply; 2+ messages in thread
From: billa chaitanya @ 2021-03-09  8:14 UTC (permalink / raw)
  To: supervision

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

Hi Team,

I am trying to log the prints coming from daemons like dropbear using
s6-log, but couldn't make it.
Am I missing something?

drop bear service and log run files are as below.

:~# cat source/dropbear-service/run
#! /bin/execlineb -P
fdmove -c 2 1
/usr/sbin/dropbear -F

:~# cat source/dropbear-log/run
#!/bin/execlineb -P
foreground { mkdir -p /var/logs/dropbear }
s6-log -b n7 s1999864 T /var/logs/dropbear
:~#


Thanks
chaitanya

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

* Re: S6 logging
  2021-03-09  8:14 S6 logging billa chaitanya
@ 2021-03-09 10:55 ` Laurent Bercot
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent Bercot @ 2021-03-09 10:55 UTC (permalink / raw)
  To: billa chaitanya, supervision

>I am trying to log the prints coming from daemons like dropbear using
>s6-log, but couldn't make it.
>Am I missing something?

  You really need to improve on your way of asking for help.

"couldn't make it" is not an actionable report. You need to say:
- exactly what you did (you did that, good, but you did not mention
that you were using s6-rc, which may or may not be relevant)
- exactly what you expected (you didn't do that, but it is easy to
figure out)
- exactly what happened (you didn't do that at all and we're left
to guess).

  Going out on a limb, and reading the manual page (I haven't used
dropbear in a little while), I'm guessing that the problem is this:


>/usr/sbin/dropbear -F

  You also need the -E option in order to tell dropbear to send its
error messages to stderr instead of syslog.

  But if it still doesn't work with -F -E, then we'll need more precise
information.

--
  Laurent


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

end of thread, other threads:[~2021-03-09 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09  8:14 S6 logging billa chaitanya
2021-03-09 10:55 ` Laurent Bercot

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