repo-cloner/executor-conf

17 lines
415 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Sets executor initial evironment"
start() {
# make parallel citation shut up
mkdir -p ~executor/.parallel
touch ~executor/.parallel/will-cite
# repair ownership
find /data \! -user executor -exec chown executor:executor {} \;
# pidfile
touch /var/run/cloner.pid
chown executor:executor /var/run/cloner.pid
frontail /var/log/messages /home/executor/cron.log --daemonize
}