Pid preparation, crontab: expand path
This commit is contained in:
parent
4047121435
commit
b356706cf7
1
crontab
1
crontab
|
@ -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
|
||||
|
|
|
@ -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 {} \;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user