Re: Runit script for rsyslogd

From: Joe M <joe9mail_at_gmail.com>
Date: Mon, 4 Aug 2014 11:04:27 -0500

Hello Alex,

> > I am wondering if you have any script to log using logger (to syslog)
> > from a runit service. I just want to try logging to syslog instead of
> > using svlogd.
>
> I don't really understand your question. If you wanna write something to
> syslog from shell script you can use /usr/bin/logger tool. If you wanna
> redirect output from some service's ./run to syslog instead of writing it
> to files using svlogd - use this in service's ./log/run:
>
> #!/bin/sh
> exec socat - UNIX-SENDTO:/path/to/your/log.sock

This is exactly what I was looking for. Thanks for sharing it with me.

Thanks again,
Joe

--4bRzO86E/ozDv8r1
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJT368LAAoJENvmPC7PRKkIi8wP/0h5RWfGGJdrJEoC1PzOLtef
pqsMEKHl05jw3TcVpSv1S5QeTZARw4g/60oeO7Y4LKjtKBtmgNg+5vVRSj8WwxsH
z/RGADNZkYuFzt5Mt5nRyfxPH0G492SWrppXljXw34a2nSrEBf2nwn8M4Cg8T81D
xf7hQAyUvNF3Nkfll9q2UC0P8W3VhAEiAPDCIR3gyoM7qZ4ZeLKIPUL1qFoTJh/5
iNxO6B+lUfS8I1DzFDiLSsebjMGctefe/s7DTc+PFC5nyy03QSBvSjP+/sQU5VrL
l5I3z31wJaaSUl38gKfCF+bzIk8LIsYn2gb2Ra4GLQOVwygNE9lI4Wk6FTcGrXY3
2ObuhfIV4nIuNX+ksmt7+f9vcc1AGv1ls6fhYJ5203Ao+3Ejqtvj/BAXadcdIiq3
p8uf6TvcJmofNDo+7/PIOwrAkQt7o24A5BBzhiCdoJ9R+v/afX3mZlnEGMhbTHfY
olHfaAwLhk5U1hKki5A/EZg1ePwf/iCeU3EQ3KrJfr1DiHHBXQZ/0o+iqlN23kNc
cXV1P7YPPy7KnsKAjmNzBKmFZ/UskcoKe14yVLANhHAkSk3PZh6MFN7iBib72f9a
tWrT1f+S7i9plhECe+vO9KurTc5k+aF+/nKhz5zy9elU+WFh/NLDtgJ9Pw936TKw
57etaDrt5bf02OViSxw7
=KTzV
-----END PGP SIGNATURE-----

--4bRzO86E/ozDv8r1--
Received on Mon Aug 04 2014 - 16:04:27 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:18 UTC