diff --git a/consumer.bash b/consumer.bash index 5347346..7279d7c 100755 --- a/consumer.bash +++ b/consumer.bash @@ -20,4 +20,6 @@ whoami pkill -f "python3 consumer.py" +sleep 4 + python3 consumer.py diff --git a/smart-cron-builder.py b/smart-cron-builder.py index ba1b6a5..8741b32 100755 --- a/smart-cron-builder.py +++ b/smart-cron-builder.py @@ -56,9 +56,9 @@ def buildCronExecuteTime(): def buildCronSituation(): - ##return "* * * * * /yankee-gnome-fire-consumer/consumer.bash >> " + buildLogFileName() + return "* * * * * /yankee-gnome-fire-consumer/consumer.bash >> " + buildLogFileName() - return buildCronExecuteTime() + "/yankee-gnome-fire-consumer/consumer.bash >> " + buildLogFileName() + ##return buildCronExecuteTime() + "/yankee-gnome-fire-consumer/consumer.bash >> " + buildLogFileName() ##return buildCronExecuteTime() +"/yankee-gnome-fire-consumer/consumer.bash >> " + buildLogFileName() + " 2>&1"