> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ejournalCron

> Automated tasks in Service - ejournalCron

Executed by the **ejSchedule** service every minute through the ejCrontab.txt file together with **importMail**.

Apart from importing mail, this file executes most automated tasks in Service.

Tasks in the order they are executed:

```text theme={null}
doActivateTicket()
doInternalLogOut()
doCheckTicketAlerts()
doWarnActiveTickets()
doEjscripts()
doRemoveDeletedTickets(14)
doRemoveOldAutoSaves()
doRemoveExpiredNotifications()
deleteSentMail(m_db)
doFork()
doSendBatch()
doPopulateShipments()
buildFaq()
checkDiskSpace()
checkLicenseExpiration()
checkSessions
doSendStatEmail
doSendUsageStat
```

As with most other executables, **ejournalCron** can be executed with parameters for debugging purposes.

**Usage**: `ejournalCron [OPTION] domain`

**Options:**

* **-dbDebug** Displays database debug information
* **-force** Will force all jobs to run no matter when they are scheduled
* **-debug** Display debug information
* **-maxdebug** Display all debug information (enables debug)
* **-about** Show about
* **-noSender** Will not start the mailing job
* **-noOutbox** Will not start the job sending out emails
* **-noDBI** Will not start the DBI sync job

**Example:** `ejournalCron -maxdebug -noSender support.yourdomain.com`


## Related topics

- [Enum ShipmentStatus](/en/automation/crmscript/reference/CRMScript.NetServer.ShipmentStatus.md)
- [SuperOffice.WebApi.Data.ShipmentStatus](/en/api/reference/webapi/SuperOffice.WebApi.Data.ShipmentStatus.md)
- [Automated tasks in Service](/en/onsite/automated-tasks/index.md)
- [Enum values for ShipmentStatus](/en/database/tables/enums/shipmentstatus.md)
- [Inbox](/en/automation/crmscript/reference/CRMScript.Native.Inbox.md)
- [timestamps table](/en/database/tables/timestamps.md)
