I noticed that cronjobs were not running whilst I had active docker containers. After a bit of troubleshooting I found this was down to cron daemons running inside containers confusing the TOS cron init script. This is because the pidof command will return the pid of any containerized cron daemons rather than just the main TOS daemon's pid.
To fix this I editted /etc/init.d/cron as follows:
Replace all instances of
Code: Select all
pid=`pidof crond`
Code: Select all
local pid=`ps -e -o pid,cgroup,args | awk '$2=="-" && /crond/ && !/awk/ { print $1}'`