repo-cloner/startup-logcat

19 lines
440 B
Bash
Executable File

#!/bin/bash
# prepares persmissions for files & starts frontail to tail log files
# make parallel citation shut up
mkdir -p ~executor/.parallel
touch ~executor/.parallel/will-cite
# pid file ownership
touch /var/run/cloner.pid
chown executor:executor /var/run/cloner.pid
# repair ownership
find /data \! -user executor -exec chown executor:executor {} \;
frontail /var/log/syslog /home/executor/cron.log --daemonize --url-path /logs