about summary refs log tree commit diff
path: root/vlogger.c
Commit message (Collapse)AuthorAgeFilesLines
* vlogger: Fix symlinked ./run handling, make sure tag is initialized.Christopher Brannon2018-06-201-6/+25
| | | | | | | | | If vlogger is symlinked to foo/log/run for some service foo, it's invoked as ./run with $SERVICEDIR/foo/log as the cwd. So extract the service name from cwd if argv[0] is ./run. Also tag is initialized to the generic "vlogger" if it is not given on the command line and servicename couldn't be extracted from cwd.
* vlogger: exit if exec failsDuncaen2018-06-201-1/+4
|
* vlogger: strdup error checkDuncaen2018-06-201-4/+6
|
* vlogger: run /etc/vlogger with the same argv[0]Duncaen2018-06-201-2/+4
|
* vlogger: dont define _* namespaceDuncaen2018-06-201-1/+1
|
* Add vlogger(8)Duncaen2018-06-201-0/+111
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.