You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
389 B

#!/bin/sh
# file: fakeapp3/log/run
# Collect all logs which come to /dev/log (syslog) from the app
exec 2>&1
echo $(realpath $0) started
mkdir /var/log/fakeapp3 2>/dev/null
# savelog -n -c 7 /var/log/fakeapp3/current
# exec sh -c "chpst -Unobody socklog unix /dev/log | tee -a /var/log/fakeapp3/current"
exec sh -c "chpst -Unobody socklog unix /dev/log | svlogd -tt /var/log/fakeapp3"