# Module files

### For the Bitrix24 app, the service and folders are called itgrix\_bx, for the Kommo app it's itgrix\_kmo

### Main module files

| Itgrix\_bx (Bitrix24) | Itgrix\_kmo (Kommo) |
| --------------------- | ------------------- |
| /opt/itgrix\_bx/      | /opt/itgrix\_kmo/   |

### Configuration file

| Bitrix24                    | Kommo                        |
| --------------------------- | ---------------------------- |
| /etc/itgrix\_bx/config.json | /etc/itgrix\_kmo/config.json |

### **Customizer**

All customizer files are located in the folder:

| Bitrix24                    | Kommo                        |
| --------------------------- | ---------------------------- |
| /opt/itgrix\_bx/customizer/ | /opt/itgrix\_kmo/customizer/ |

In this folder:

* Executable file `customize.php` (the path to it must be specified in the configuration file in the `customizer.program_path` field).
* Customizer's `settings.json` file. Especially important when using an additional copy of the module.
* Customization files in the `actions` folder.
* `README` file with documentation (including user-accessible functions).

### **Log**

The current day's log:

| Bitrix24                | Kommo                    |
| ----------------------- | ------------------------ |
| /var/log/itgrix\_bx.log | /var/log/itgrix\_kmo.log |

Logs are stored for 5 days, rotating around 3am.

### Logrotate settings

| Bitrix24                    | Kommo                        |
| --------------------------- | ---------------------------- |
| /etc/logrotate.d/itgrix\_bx | /etc/logrotate.d/itgrix\_kmo |

### Service

For systems using **systemctl**, the service is configured in the file:

| Bitrix24                               | Kommo                                   |
| -------------------------------------- | --------------------------------------- |
| /etc/systemd/system/itgrix\_bx.service | /etc/systemd/system/itgrix\_kmo.service |

For other systems:

| Bitrix24               | Kommo                   |
| ---------------------- | ----------------------- |
| /etc/init.d/itgrix\_bx | /etc/init.d/itgrix\_kmo |
