repo-cloner/old/startup-logcat

19 lines
440 B
Plaintext
Raw Normal View History

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