2018-10-28 16:26:20 +01:00
|
|
|
#!/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
|
2018-10-28 16:32:13 +01:00
|
|
|
touch /var/run/cloner.pid
|
|
|
|
chown executor:executor /var/run/cloner.pid
|
2018-10-28 16:52:59 +01:00
|
|
|
frontail /var/log/messages /home/executor/cron.log --daemonize
|
2018-10-28 16:26:20 +01:00
|
|
|
}
|
|
|
|
|