Skip to content

Title: Suggestion: Add -v flag to default scheduler cron job for better debugging/logging. #2484

@moln4rvilmos

Description

@moln4rvilmos

Body:

In the official Grav documentation (or installation instructions) suggesting the cron job for the scheduler, the current command is:

(crontab -l; echo "* * * * * cd /path/to/grav/root;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -

I suggest adding the -v (verbose) flag to the bin/grav scheduler command to improve logging and troubleshooting capabilities for users.

Proposed Change:

(crontab -l; echo "* * * * * cd /path/to/grav/root;/usr/bin/php bin/grav scheduler -v 1>> /dev/null 2>&1") | crontab -

Note: While the output is still redirected to /dev/null in the default suggestion, having the -v flag ensures that if a user removes the redirection (1>> /dev/null 2>&1) for debugging, they get more detailed output immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions