-
-
-
-
- /bin/bash -c ‘pidof polisd || polisd -reindex -daemon’
-
-
-
-
-
-
-
- echo “Hello world” >> ~/fuckcron.txt
-
-
-
-
-
-
-
- cd /sentinel && ./venv/bin/python bin/sentinel.py >/dev/null 2>&1
-
-
-
-
-
-
-
- pidof polisd || polisd -reindex -daemon
-
-
-
for some reason pidof in cron is not working
but if i try this command as usual in prompt then it works ok
how can it be?
cron is working fine in docker
:~# ls
fuckcron.txt log polis.conf polis_update.sh
root@83901d7cfdb3:~# cat fuckcron.txt
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
root@83901d7cfdb3:~# htop
root@83901d7cfdb3:~# cat fuckcron.txt
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
root@83901d7cfdb3:~# crontab -