Correction du bug cron

Ajout de couleurs dans les logs
This commit is contained in:
root
2020-08-06 16:20:43 +02:00
parent 65ed791507
commit 9133564455
6 changed files with 62 additions and 13 deletions

7
service/20-cron/run Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
. /etc/service/template
msglog "Starting Cron..."
# Touch cron files to fix 'NUMBER OF HARD LINKS > 1' issue. See https://github.com/phusion/baseimage-docker/issues/198
touch -c /etc/crontab /etc/cron.*/* /var/spool/cron/crontabs/*
exec /usr/sbin/cron -f