Pid preparation, crontab: expand path

This commit is contained in:
Václav Valíček 2021-01-20 14:56:06 +01:00
parent 4047121435
commit b356706cf7
No known key found for this signature in database
GPG Key ID: 91AA271095BD0100
2 changed files with 5 additions and 0 deletions

View File

@ -1,4 +1,5 @@
# executor crontab
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
MAILTO=""
* * * * * executor /usr/local/bin/cron-command >> /home/executor/cron.log 2>&1
0 0 * * * executor mv /home/executor/cron.log /home/executor/cron.old

View File

@ -6,6 +6,10 @@
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 {} \;