From b356706cf7a5000e71ed90ae5aa70abcf78e871a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Val=C3=AD=C4=8Dek=20=28YCNet=29?= Date: Wed, 20 Jan 2021 14:56:06 +0100 Subject: [PATCH] Pid preparation, crontab: expand path --- crontab | 1 + startup-logcat | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/crontab b/crontab index a27540f..bea162e 100644 --- a/crontab +++ b/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 diff --git a/startup-logcat b/startup-logcat index 4b7994f..3b88788 100755 --- a/startup-logcat +++ b/startup-logcat @@ -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 {} \;