Make logging base dir configurable
This commit is contained in:
parent
f9bc7405a9
commit
d5fa2e99de
2 changed files with 3 additions and 4 deletions
2
log
2
log
|
@ -1,5 +1,5 @@
|
|||
#!/bin/zsh
|
||||
SERVICE=${0:a:h:h:t}
|
||||
LOGDIR=$HOME/.local/log/$SERVICE
|
||||
LOGDIR=${SVLOGDIR:-$HOME/.local/log}/$SERVICE
|
||||
mkdir -p $LOGDIR
|
||||
exec svlogd -ttt $LOGDIR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue