In order to enable/disable process autorun, use the commands: | Блок кода |
|---|
| language | text |
|---|
| title | Enabling process autorun |
|---|
| iwtm enable <process_name> |
| Блок кода |
|---|
| language | text |
|---|
| title | Disabling process autorun |
|---|
| iwtm disable <process_name> |
| Блок кода |
|---|
| language | text |
|---|
| title | Enabling autorun for several processes |
|---|
| iwtm enable <process1_name> <process2_name> ... <processN_name> |
| Блок кода |
|---|
| language | text |
|---|
| title | Disabling autorun for several processes |
|---|
| iwtm disable <process1_name> <process2_name> ... <processN_name> |
| Блок кода |
|---|
| language | text |
|---|
| title | Enabling autorun for all processes |
|---|
| iwtm enable all |
| Блок кода |
|---|
| language | text |
|---|
| title | Disabling autorun for all processes |
|---|
| iwtm disable all |
Example of enabling/disabling iw_proxy service: The iw_proxy service includes three components: iw_proxy_http, iw_proxy_icq, iw iw_proxy_smtp. For this reason: To enable autorun for a process (e.g., for iw_proxy_http) set the enable status for the process with the following command:
iwtm enable iw_proxy_http To disable autorun, set the disable status for the process: iwtm disable iw_proxy_http
Restart iw_proxy service:
iwtm restart iw_proxy All Traffic Monitor processes with the enable status For each process of the service, enable/disable autorun: | Блок кода |
|---|
| language | text |
|---|
| title | Enabling autorun |
|---|
| iwtm enable iw_proxy_http iw_proxy_icq iw_proxy_smtp |
| Блок кода |
|---|
| language | text |
|---|
| title | Disabling autorun |
|---|
| iwtm disable iw_proxy_http iw_proxy_icq iw_proxy_smtp |
Restart the processes of iw_proxy service:
| Блок кода |
|---|
| iwtm restart iw_proxy_http iw_proxy_icq iw_proxy_smtp |
All Traffic Monitor processes with the loaded (enabled) status can run automatically, while processes with the disablethe masked (masked) status can only be started manually. To In order to configure the process autorun: Unit files are stored in the - Go to the directory with unit files,
/usr/lib/systemd/system directory- .
- Edit the process unit file
(for - and save your changes. For details, see"Configuration Files Guide" document, "Traffic Monitor
configuration files") and save the file.Reboot - Configuration and Unit Files Description" section.
Reload the configuration: | Блок кода |
|---|
| systemctl daemon-reload |
Add the configured process to autorun:: | Блок кода |
|---|
| iwtm enable <process_name> |
Start the process: <process_name> - Check if the process is started with one of the following commands:
systemctl status <process_name>
iwtm statusTo enable autorun of few processes, enter as follows: iwtm enable <daemon1_name> <daemon2_name> ... <daemonN_name> To disable autorun of few processes in the System, enter the following command: iwtm disable <daemon1_name> <daemon2_name> ... <daemonN_name> To enable autorun of all the processes in the System, enter the following command: iwtm enable all
To disable autorun of all the processes in the System, enter the following command: iwtm disable all
| Блок кода |
|---|
| language | text |
|---|
| title | Command to check status of a specific process |
|---|
| systemctl status <process_name> |
| Блок кода |
|---|
| language | text |
|---|
| title | Command to check status of all services |
|---|
| iwtm status |
In Active field or in the line corresponding to the process, find the process status: active (running);inactive (dead).
|