Cron updates

This commit is contained in:
Andrei Condurachi 2020-11-21 23:02:03 +02:00
parent ca80c233b2
commit 81be6eff72
1 changed files with 4 additions and 0 deletions

4
run.sh
View File

@ -3,6 +3,10 @@
# syslog option '-Z' was changed to '-t', change this in /etc/conf.d/syslog so that syslog (and then cron) actually starts
# https://gitlab.alpinelinux.org/alpine/aports/-/issues/9279
exec sed -i 's/SYSLOGD_OPTS="-Z"/SYSLOGD_OPTS="-t"/g' /etc/conf.d/syslog
# Start the kernel log deamon
exec service klogd start
# Start the cron deamon
exec service crond start
# Create cron job for Grav maintenance scripts
(crontab -l; echo "* * * * * cd /var/www/html;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -