| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* Don't store the return value of getopt in a char. Storing in a char
and comparing against -1 breaks on ARM, where char is unsigned.
* The line argument to getline should point at a NULL char *. Otherwise,
getline will treat *line as a pointer to an allocated buffer. With
a little extra work, we could reuse the buffer, but always calling getline
with *line == NULL is safe.
Closes: #2 [via git-merge-pr]
|
| |
|
|
|
|
|
|
|
|
|
| |
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(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.
|