about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-03-01 19:15:03 +0100
committerDuncaen <mail@duncano.de>2018-06-20 18:02:46 +0200
commitb29a3c4d11ec1cf778b253e3c3fbbf04b0794f86 (patch)
treef81345c482f77b0d31b2ca73d98fa6752013a23f /Makefile
parent8fe7df917d20e4bdad51fabcc3675e66fa50e330 (diff)
downloadrunit-void-b29a3c4d11ec1cf778b253e3c3fbbf04b0794f86.tar.gz
runit-void-b29a3c4d11ec1cf778b253e3c3fbbf04b0794f86.tar.xz
runit-void-b29a3c4d11ec1cf778b253e3c3fbbf04b0794f86.zip
Add vlogger(8)
vlogger(8) is a alternative to logger(1), by default it sends messages
from stdin to syslog.

The main reason to replace logger(1) is, that logger only connects once to
the syslog socket in default mode and puts all messages into the void if
syslog is not running at the time.
logger(1) has a new `--socket-errors=on` mode which would work, but some
void uses don't use syslog at all and in this case the log service would
constantly restart.

As a bonus vlogger(8) looks for /etc/vlogger and if its executable it
just executes it and is replaced by it.
This can be used to avoid syslog and just write all logs to files with
svlogd(8) as example, without having to edit all log services.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a21e5c9..001c17b 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ SCRIPTS=	1 2 3 ctrlaltdel
 all:
 	$(CC) $(CFLAGS) halt.c -o halt $(LDFLAGS)
 	$(CC) $(CFLAGS) pause.c -o pause $(LDFLAGS)
+	$(CC) $(CFLAGS) vlogger.c -o vlogger $(LDFLAGS)
 
 install:
 	install -d ${DESTDIR}/${PREFIX}/sbin
@@ -22,6 +23,7 @@ install:
 	install -m644 shutdown.8 ${DESTDIR}/${PREFIX}/share/man/man8
 	install -m644 halt.8 ${DESTDIR}/${PREFIX}/share/man/man8
 	install -m644 modules-load.8 ${DESTDIR}/${PREFIX}/share/man/man8
+	install -m644 vlogger.8 ${DESTDIR}/${PREFIX}/share/man/man8
 	ln -sf halt.8 ${DESTDIR}/${PREFIX}/share/man/man8/poweroff.8
 	ln -sf halt.8 ${DESTDIR}/${PREFIX}/share/man/man8/reboot.8
 	install -d ${DESTDIR}/etc/sv