Re: Runit script for rsyslogd

From: Alex Efros <>
Date: Mon, 4 Aug 2014 08:19:33 +0300


On Sun, Aug 03, 2014 at 11:37:56PM -0500, Joe M wrote:
> 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:

    exec socat - UNIX-SENDTO:/path/to/your/log.sock

			WBR, Alex.
Received on Mon Aug 04 2014 - 05:19:33 UTC

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