-
Notifications
You must be signed in to change notification settings - Fork 250
Background jobs
Background jobs in LibreBooking are required for many automatic processes.
Users can request that reminder emails are sent prior to the beginning or end of a reservation.
In order for this feature to function, enable.email and enable.reminders must both be set to true in Application Configuration. Also, a scheduled task must be configured on your server to execute Jobs/sendreminders.php
On Linux, a cron job can be used. The command to run is php followed by the full path to Jobs/sendreminders.php.
An example cron configuration might look like: * * * * * php -f /home/yourhost/public_html/Jobs/sendreminders.php
If you have access to cPanel through a hosting provider, setting up a cron job in cPanel is straightforward. Either select the Every Minute option from the Common Settings menu, or enter * for minute, hour, day, month and weekday.
On Windows, a scheduled task can be used. The task must be configured to run at a frequent interval – at least every 5 minutes. The task to execute is php followed by the full path to LibreBooking\Jobs\sendreminders.php. For example, c:\PHP\php.exe -f c:\inetpub\wwwroot\LibreBooking\Jobs\sendreminders.php
If you are using the check in/check out functionality, you can optionally set a resource to be automatically made available if the check in is missed.
On Linux, a cron job can be used. The command to run is php followed by the full path to Jobs/autorelease.php
An example cron configuration might look like: * * * * * php -f /home/yourhost/public_html/Jobs/autorelease.php
If you have access to cPanel through a hosting provider, setting up a cron job in cPanel is straightforward. Either select the Every Minute option from the Common Settings menu, or enter * for minute, hour, day, month and weekday.
On Windows, a scheduled task can be used. The task must be configured to run at a frequent interval – at least every 5 minutes. The task to execute is php followed by the full path to Jobs\autorelease.php. For example, c:\PHP\php.exe -f c:\inetpub\wwwroot\LibreBooking\Jobs\autorelease.php
If you have enabled waitlist notification functionality, you can automatically send notifications to users waiting for a resource to become available.
On Linux, a cron job can be used. The command to run is php followed by the full path to Jobs/sendwaitlist.php
An example cron configuration might look like: * * * * * php -f /home/yourhost/public_html/Jobs/sendwaitlist.php
If you have access to cPanel through a hosting provider, setting up a cron job in cPanel is straightforward. Either select the Every Minute option from the Common Settings menu, or enter * for minute, hour, day, month and weekday.
On Windows, a scheduled task can be used. The task must be configured to run at a frequent interval – at least every 5 minutes. The task to execute is php followed by the full path to Jobs\sendwaitlist.php. For example, c:\PHP\php.exe -f c:\inetpub\wwwroot\LibreBooking\Jobs\sendwaitlist.php
This notification will be sent to users if they missed the check in time for their reservation.
On Linux, a cron job can be used. The command to run is php followed by the full path to Jobs/sendmissedcheckin.php
An example cron configuration might look like: * * * * * php -f /home/yourhost/public_html/Jobs/sendmissedcheckin.php
If you have access to cPanel through a hosting provider, setting up a cron job in cPanel is straightforward. Either select the Every Minute option from the Common Settings menu, or enter * for minute, hour, day, month and weekday.
On Windows, a scheduled task can be used. The task must be configured to run once per minute. The task to execute is php followed by the full path to LibreBooking\Jobs\sendmissedcheckin.php. For example, c:\PHP\php.exe -f c:\inetpub\wwwroot\LibreBooking\Jobs\sendmissedcheckin.php