Skip to content

Commit 1168e59

Browse files
authored
Merge pull request #363 from crazy-max/artisan-schedule
handle artisan schedule:run
2 parents 6c8286c + cb52068 commit 1168e59

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

rootfs/etc/cont-init.d/07-svc-cron.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ if [ "$LIBRENMS_WEATHERMAP" = "true" ] && [ -n "$LIBRENMS_WEATHERMAP_SCHEDULE" ]
3030
echo "${LIBRENMS_WEATHERMAP_SCHEDULE} php -f /opt/librenms/html/plugins/Weathermap/map-poller.php" >>${CRONTAB_PATH}/librenms
3131
fi
3232

33+
echo "Creating LibreNMS cron artisan schedule:run"
34+
echo "* * * * * php /opt/librenms/artisan schedule:run --no-ansi --no-interaction > /dev/null 2>&1" >>${CRONTAB_PATH}/librenms
35+
3336
# Fix perms
3437
echo "Fixing crontabs permissions..."
3538
chmod -R 0644 ${CRONTAB_PATH}

0 commit comments

Comments
 (0)