summary refs log tree commit diff
path: root/os/etc/s6-rc/src/syncthing-log/run
blob: 35dd33a1118ed50d37815b7a15cf757a30ed105e (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/execlineb -P

envfile /etc/s6-rc/config/log.conf
envfile -I /etc/s6-rc/config/syncthing.conf
importas -sCuD "n2 s2000000 T" LOG_DIRECTIVES LOG_DIRECTIVES
importas -sCuD "/run/log" LOG_DIR LOG_DIR

foreground { install -d ${LOG_DIR}/syncthing }
s6-log -d3 -b -- ${LOG_DIRECTIVES} ${LOG_DIR}/syncthing